-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve License Detection reporting #3286
Conversation
Reference: #3266 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Reference: #3266 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
- Rename count to detections_count in UniqueLicenseDetection - Add rule_relevance back to match level data Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Updates test expectations for a few LicenseDetection cosmatic changes. - Remove 'not-combined' - Move detection log after matches - Add rule relevance - rename count to detection count Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Only show license detection logs when --license-text-diagnostics is enabled. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Update test expectations after making detection logs only present in --license-text-diagnostics. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
43b8ebf
to
964cef9
Compare
Moved license references to a CLI option and not default. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
fdb1992
to
a7ee549
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. Thanks!
Let's have a chat at your convenience though as I think we can do better wrt. inlining or not inlining license matches.
tests/licensedcode/data/additional_licenses/additional_license_combined_test.expected.json
Outdated
Show resolved
Hide resolved
tests/licensedcode/data/additional_licenses/additional_license_combined_test.expected.json
Show resolved
Hide resolved
Adding a --license-diagnostics options for showing detection logs, which are now disabled by default. This functionality was added to --license-text-diagnostics previously, but with this commit it is a separate CLI option. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
* Top level license detections are lean, without matches * Resource/package level license detections have the identifier * identifier is computed scan time, and recomputed in post-processing if detections are combined. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
ded31de
to
2acfd63
Compare
@pombredanne This is ready for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weird... as there should be no detection_log at the top
...ensedcode/data/licenses_reference_reporting/license-reference-works-with-clues.expected.json
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise and ready to merge!
Thanks @pombredanne, merging this! |
Fixes #3266
Fixes #3269
This PR improves the License Detection output with important and cosmetic changes:
Tasks
Run tests locally to check for errors.