scancode.io icon indicating copy to clipboard operation
scancode.io copied to clipboard

Improving D2D mapping for npm - .github/

Open chinyeungli opened this issue 1 year ago • 2 comments

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 avatar Sep 11 '25 09:09 chinyeungli

@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 avatar Dec 12 '25 18:12 Aryan-SINGH-GIT

@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.

chinyeungli avatar Dec 14 '25 23:12 chinyeungli