-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Scancode incorrectly classifies a file with MIT license as under a properitary license too #3532
Comments
@omajid Thanks for the report. This is a bug alright.
The output comes out this way as YAML: - path: CreateTokenTests-short.cs
type: file
detected_license_expression: mit AND proprietary-license
detected_license_expression_spdx: MIT AND LicenseRef-scancode-proprietary-license
license_detections:
- license_expression: mit AND proprietary-license
matches:
- score: '100.0'
start_line: 2
end_line: 2
matched_length: 5
match_coverage: '100.0'
matcher: 2-aho
license_expression: mit
rule_identifier: mit_12.RULE
rule_relevance: 100
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_12.RULE
matched_text: Licensed under the MIT License.
- score: '4.04'
start_line: 2
end_line: 4
matched_length: 4
match_coverage: '4.04'
matcher: 3-seq
license_expression: proprietary-license
rule_identifier: proprietary-license_709.RULE
rule_relevance: 100
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_709.RULE
matched_text: |
Licensed under [the] [MIT] License.
[using] [System].[Security].Claims;
identifier: mit_and_proprietary_license-3ada3869-ed0a-2a77-e11b-1422d5133430 The resolution will likely to add curly braces around parts of https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_709.RULE that MUST be present for this rule to be matched. |
Fixed in ScanCode 32.0.8. Thanks for the report and keep them coming! What you are doing on the dotnet repos looks mighty cool. |
Description
I have a file that begins like this:
Scanning this via scancode flags this file as being under
mit
(which is correct) also againstproprietary-license
(which is wrong) matchingproprietary-license_709.RULE
.How To Reproduce
System configuration
The text was updated successfully, but these errors were encountered: