Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8c44551
Add is_unknown flag in license data model
akugarg Jun 11, 2021
ff6ce3d
Add is_unknown flag in license data model
akugarg Jun 11, 2021
540f502
Add is_unknown flag in data model for unknown licenses
akugarg Jun 11, 2021
4fa04ff
Add is_unknown flag in data model for unknown licenses
akugarg Jun 14, 2021
3dc3c3c
Add is_unknown flag for unknown-spdx
akugarg Jun 14, 2021
1d7872d
Add a test for validation of rules
akugarg Jun 14, 2021
4d61111
Update Test cases
akugarg Jun 15, 2021
a451a9c
Add is_unknown flag for license class
akugarg Jun 17, 2021
e62be42
Add is_unknown flag to data files of unknown licenses
akugarg Jun 17, 2021
5136b4d
Merge branch 'nexB:develop' into add_new_flag
akugarg Jun 20, 2021
477573a
Add is_unknown flag to data files of unknown licenses
akugarg Jun 20, 2021
40ce57b
Update test cases for new flag addition
akugarg Jun 20, 2021
c3fb603
Update test cases for new flag addition
akugarg Jun 21, 2021
0a0e54a
Add new validation rules
akugarg Jun 22, 2021
777e491
Update test cases for new flag addition
akugarg Jun 25, 2021
343b403
Fix failing test cases
akugarg Jun 28, 2021
1156c18
Merge branch 'nexB:develop' into add_new_flag
akugarg Jul 7, 2021
a1843cf
Add is_unknown flag in data model for unknown licenses
akugarg Jul 8, 2021
ad0c151
Merge branch 'develop' into add_new_flag
akugarg Jul 11, 2021
808bbbb
Update test cases upto expectations
akugarg Jul 14, 2021
b83ec88
Add is_unknown flag in data model for unknown licenses
akugarg Jul 21, 2021
3b51763
Merge remote-tracking branch 'upstream/develop' into add_new_flag
pombredanne Aug 6, 2021
f1b8085
Update changelog
pombredanne Aug 6, 2021
2690500
Add comment, docstring and format code
pombredanne Aug 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions docs/source/cli-reference/output-format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ following options.
"short_name": "MIT Old Style",
"category": "Permissive",
"is_exception": false,
"is_unknown": false,
"owner": "MIT",
"homepage_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
"text_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
Expand Down
1 change: 1 addition & 0 deletions docs/source/cli-reference/synopsis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ A sample JSON output for an individual file will look like::
"short_name": "MIT Old Style",
"category": "Permissive",
"is_exception": false,
"is_unknown": false,
"owner": "MIT",
"homepage_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
"text_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
Expand Down
2 changes: 2 additions & 0 deletions src/licensedcode/data/licenses/free-unknown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ short_name: Free unknown
name: Free unknown license detected but not recognized
category: Unstated License
owner: Unspecified
is_unknown: yes
spdx_license_key: LicenseRef-scancode-free-unknown

1 change: 1 addition & 0 deletions src/licensedcode/data/licenses/license-file-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ short_name: license-file-reference
name: license-file-reference
category: Unstated License
owner: Unspecified
is_unknown: yes
notes: this was known before as "see-license" and is now unknown-license-reference
1 change: 1 addition & 0 deletions src/licensedcode/data/licenses/see-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ name: See License mention
category: Unstated License
owner: Unspecified
is_deprecated: yes
is_unknown: yes
notes: replaced by unknown-license-reference
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ short_name: Unknown License reference
name: Unknown License file reference
category: Unstated License
owner: Unspecified
is_unknown: yes
notes: This is reference to a license file with no clear license. this was known before as "see-license"
and "license-file-reference"
spdx_license_key: LicenseRef-scancode-unknown-license-reference
1 change: 1 addition & 0 deletions src/licensedcode/data/licenses/unknown-spdx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ short_name: unknown SPDX
name: Unknown SPDX license detected but not recognized
category: Unstated License
owner: Unspecified
is_unknown: yes
spdx_license_key: LicenseRef-scancode-unknown-spdx
notes: This is something that clearly ressembles a license in an SPDX license
expression but is not conclusively an SPDX license ID.
1 change: 1 addition & 0 deletions src/licensedcode/data/licenses/unknown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ short_name: unknown
name: Unknown license detected but not recognized
category: Unstated License
owner: Unspecified
is_unknown: yes
spdx_license_key: LicenseRef-scancode-unknown
notes: This is something that clearly ressembles a license but is not conclusive.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: agpl-3.0 AND other-copyleft AND unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
notes: contains several additions that may or may not be a problem wrt. compatibility with the
AGPL
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/agpl-3.0_and_unknown_1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: agpl-3.0 AND unknown
is_license_tag: yes
is_unknown: yes
relevance: 100
notes: commercial use right are not clear
ignorable_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: apache-2.0 AND free-unknown
is_license_tag: yes
is_unknown: yes
relevance: 100
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: apache-2.0 AND free-unknown
is_license_notice: yes
is_unknown: yes
minimum_coverage: 80
referenced_filenames:
- docs/THIRDPARTY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: apache-2.0 AND free-unknown
is_license_notice: yes
is_unknown: yes
minimum_coverage: 80
referenced_filenames:
- docs/THIRDPARTY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: apache-2.0 OR free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: apache-2.0 OR free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/apsl-1.2_5.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
license_expression: apsl-1.2 AND unknown
is_license_reference: yes
is_unknown: yes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: bsd-simplified AND bsd-new AND unknown-license-reference
is_license_reference: yes
is_unknown: yes
relevance: 90
ignorable_urls:
- https://raw.github.com/editorconfig/editorconfig-core/master/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
license_expression: bsd-simplified AND unknown
is_license_notice: yes
is_unknown: yes
relevance: 90
notes: Seen in https://git.icod.de/dalu/i18n
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: (bsd-simplified OR unknown-license-reference) AND odbl-1.0
is_license_notice: yes
is_unknown: yes
relevance: 95
referenced_filenames:
- LEGAL
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/bsd-top_and_gpl-2.0-plus_1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: bsd-top AND gpl-2.0-plus AND free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 85
minimum_coverage: 70
notes: this is a franken license composed of parts of a bsd-top and parts of a gpl notice from
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/cpal-1.0_1.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: cpal-1.0 OR free-unknown
is_license_notice: yes
is_unknown: yes
minimum_coverage: 60
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/cpal-1.0_13.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: cpal-1.0 OR free-unknown
is_license_notice: yes
is_unknown: yes
minimum_coverage: 60
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: (cpl-1.0 OR bsd-simplified OR gpl-2.0) AND free-unknown
is_license_notice: yes
is_unknown: yes
notes: there are extra requirements at the bottom that apply in all cases above and extend beyond
the requirements of the three main choices
ignorable_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: (gpl-2.0 OR bsd-simplified OR cpl-1.0) AND free-unknown
is_license_notice: yes
is_unknown: yes
notes: there are extra requirements at the bottom that apply in all cases above and extend beyond
the requirements of the three main choices
ignorable_urls:
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/epl-2.0_1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: bsd-new AND epl-2.0 AND free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
minimum_coverage: 98
notes: there is a typo in the text with an EDL reference so the license is unclear
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: unknown
is_license_reference: yes
is_unknown: yes
notes: some comment about a license
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/eupl-1.2_and_unknown_1.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: eupl-1.2 AND unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
ignorable_urls:
- https://joinup.ec.europa.eu/community/eupl/og_page/eupl
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_0.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 99
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_1.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_10.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
referenced_filenames:
- COPYING
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_100.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_101.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_102.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_103.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_104.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_105.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_106.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
referenced_filenames:
- jpegxr/COPYRIGHT.txt
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_107.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_108.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_109.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
referenced_filenames:
- COPYING
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_11.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
referenced_filenames:
- COPYING
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_110.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_111.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
referenced_filenames:
- LICENSE
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_112.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_113.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
notes: this is a generic CC notie that there is a license
ignorable_urls:
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_114.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_115.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
relevance: 100
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_116.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
relevance: 99
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_117.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
minimum_coverage: 99
notes: |
this is a rare modified Apache 2.0 license from PIXAR, reported as
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_12.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_127.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
referenced_filenames:
- COPYING
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_13.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_14.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_15.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_16.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_17.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
referenced_filenames:
- COPYING
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_18.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
referenced_filenames:
- COPYING
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_19.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
referenced_filenames:
- COPYING
- LICENSE
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_2.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_20.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_21.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_22.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
notes: typically for GPL but this can vary and be various versions
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_23.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
notes: Seen in some perl module
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_24.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
license_expression: free-unknown
is_license_reference: yes
is_unknown: yes
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_25.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
minimum_coverage: 80
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_26.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/free-unknown_27.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
license_expression: free-unknown
is_license_notice: yes
is_unknown: yes
ignorable_copyrights:
- Copyright (c) Emagic
ignorable_holders:
Expand Down
Loading