Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4225.
The
is_manifestflag insummarycode/classify.pyrelied on a hardcoded_MANIFEST_ENDSlist that is a small, outdated subset of the package manifests ScanCode can detect, so 23 packagedcode-detected manifests (go.mod, go.sum, Cargo.lock, conanfile.py, pubspec.yaml, package-lock.json, yarn.lock, poetry.lock, requirements.txt, composer.lock, ...) were not flagged as manifests by--classify.This change derives the manifest path patterns dynamically from the
path_patternsof allAPPLICATION_PACKAGE_DATAFILE_HANDLERS(lazy import to avoid a circular import; results cached). The hardcoded list is kept for manifests with no handler. Patterns matching binary package archives (.whl, .jar, .apk, .deb, .rpm, .zip, ...) are excluded.Tests: added
test_is_manifest_path_matches_packagedcode_manifestsplus 22 new manifest fixtures;tests/summarycode/test_classify.py7/7 pass; fulltests/summarycode/suite 36 passed.