Skip to content

Commit 0dd52df

Browse files
authored
Merge pull request #2548 from akugarg/add_new_flag
Add new flag in License Data Model definition
2 parents ef4232c + 2690500 commit 0dd52df

File tree

71 files changed

+2282
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2282
-24
lines changed

CHANGELOG.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,25 @@ Package detection:
4343
- Add support to track installed files for each Package type.
4444

4545

46+
License detection:
47+
~~~~~~~~~~~~~~~~~~~
48+
49+
- Unknown licenses have a new flag "is_unknown" to identify them
50+
beyond just the naming convention of having "unknown" as part of their name.
51+
52+
- Rules that match at least one unknown license have a flag "has_unknown" set
53+
in the returned match results.
54+
55+
56+
Many thanks to every contributors that made this possible and in particular:
57+
58+
- Akanksha Garg @akugarg
59+
- Ayan Sinha Mahapatra @AyanSinhaMahapatra
60+
- Jono Yang @JonoYang
61+
- Philippe Ombredanne @pombredanne
62+
63+
64+
4665
v21.8.4
4766
---------
4867

docs/source/cli-reference/output-format.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ following options.
177177
"short_name": "MIT Old Style",
178178
"category": "Permissive",
179179
"is_exception": false,
180+
"is_unknown": false,
180181
"owner": "MIT",
181182
"homepage_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
182183
"text_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",

docs/source/cli-reference/synopsis.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ A sample JSON output for an individual file will look like::
228228
"short_name": "MIT Old Style",
229229
"category": "Permissive",
230230
"is_exception": false,
231+
"is_unknown": false,
231232
"owner": "MIT",
232233
"homepage_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
233234
"text_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",

src/licensedcode/data/licenses/free-unknown.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ short_name: Free unknown
33
name: Free unknown license detected but not recognized
44
category: Unstated License
55
owner: Unspecified
6+
is_unknown: yes
67
spdx_license_key: LicenseRef-scancode-free-unknown
8+

src/licensedcode/data/licenses/license-file-reference.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ short_name: license-file-reference
44
name: license-file-reference
55
category: Unstated License
66
owner: Unspecified
7+
is_unknown: yes
78
notes: this was known before as "see-license" and is now unknown-license-reference

src/licensedcode/data/licenses/see-license.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ name: See License mention
44
category: Unstated License
55
owner: Unspecified
66
is_deprecated: yes
7+
is_unknown: yes
78
notes: replaced by unknown-license-reference

src/licensedcode/data/licenses/unknown-license-reference.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ short_name: Unknown License reference
33
name: Unknown License file reference
44
category: Unstated License
55
owner: Unspecified
6+
is_unknown: yes
67
notes: This is reference to a license file with no clear license. this was known before as "see-license"
78
and "license-file-reference"
89
spdx_license_key: LicenseRef-scancode-unknown-license-reference

src/licensedcode/data/licenses/unknown-spdx.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ short_name: unknown SPDX
33
name: Unknown SPDX license detected but not recognized
44
category: Unstated License
55
owner: Unspecified
6+
is_unknown: yes
67
spdx_license_key: LicenseRef-scancode-unknown-spdx
78
notes: This is something that clearly ressembles a license in an SPDX license
89
expression but is not conclusively an SPDX license ID.

src/licensedcode/data/licenses/unknown.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ short_name: unknown
33
name: Unknown license detected but not recognized
44
category: Unstated License
55
owner: Unspecified
6+
is_unknown: yes
67
spdx_license_key: LicenseRef-scancode-unknown
78
notes: This is something that clearly ressembles a license but is not conclusive.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
license_expression: unknown
22
is_license_reference: yes
3-
notes: in german
3+
notes: in german

0 commit comments

Comments
 (0)