Improving D2D mapping for npm - .github/
Sometimes, the deployment codebase may contain files in /.github/ directory that aren’t present in the development codebase. These files are related to GitHub or are manifest files and are not relevant from a D2D mapping perspective. The tool can safely disregard them during analysis.
@chinyeungli Fix: Excluded .github/ directories from all D2D mapping by adding exclude(path__contains="/.github/") to all to_codebase() queries in d2d.py.
Please assign this issue to me, I'll open a PR. Thanks!
@Aryan-SINGH-GIT I think a better approach would be to update the deployed_resource_path_exclusions in https://github.com/aboutcode-org/scancode.io/blob/main/scanpipe/pipes/d2d_config.py#L83 as this will be easier to maintain and will ensure proper status comments.