-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Update license detection #2505
Merged
Merged
Update license detection #2505
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
1a16236
Add new SSPL detection rule
pombredanne adff0dc
Add new aand improved license detection rules #2404
pombredanne 075d4d8
Update CHANGELOG
pombredanne 9114f6f
Add new license detection rule
pombredanne bbba3fa
Add minimum coverage
pombredanne b3609bc
Enable using synclib as a library
pombredanne d8a31be
Generate new FP rules from SPDX id sequences
pombredanne bb40033
Correctly npm test for unknown licenses
pombredanne 5f39252
Add new false positive rules for SPDX ids
pombredanne 3133a13
Streamline debug tracing printouts
pombredanne 3a9f71b
Do not remove overlaping false positive matches
pombredanne 2b7fb90
Add new generated license false positive rules
pombredanne 081bf90
Addnew misc. license detection rules
pombredanne 9c94995
Add new and improved license detection rules
pombredanne 841a5e9
Split license validation tests in five suites
pombredanne f13957e
Make GPL rules less false-positive prone #2484
pombredanne 4823b67
Add tests for false positive GPL detections #2484
pombredanne 6e87760
Remove redundant build_licenses_db fundtion
pombredanne 82e0c10
Format code for readability
pombredanne 6492998
Run filter_if_only_known_words_rule() last #2484
pombredanne eaa82f8
Allow query_tokenizer() call without stopwords #2484
pombredanne 06fc09b
Call tokens_by_line() with arguments #2484
pombredanne 2038f28
Treat stopwords the same as unknown words #2484
pombredanne 0899c5f
Rename variable names for clarity
pombredanne 26c048b
Add new or update KDE "Accepted" L/GPL licenses
pombredanne 5e72f06
Add new and improved license detection rules
pombredanne 6ed2456
Add new WPD license derived from the OGL license
pombredanne 505e468
Remove other licenses from exception text
pombredanne 306e4cc
Add bsla variant without advertizing clause
pombredanne 0ff7ac7
Improve rules relevance
pombredanne 46b4092
Add new license detection rules
pombredanne 49f32e6
Add new license rule for entsoe notice
pombredanne fb606a7
Merge remote-tracking branch 'upstream/develop' into 2021-04-license-…
pombredanne e4fc12d
Generate FP license rules not only from ngrams
pombredanne ca849c2
Improve copyright detection
pombredanne 7c6bcd9
Update tests with latest expectations
pombredanne 5b99659
Ignore local tmp directories in tests
pombredanne 2f0a51f
Add new license detection rules
pombredanne e26ab80
Add new false positive license detection rules
pombredanne 10b927c
Improve rule relevance and coverage
pombredanne 72aba1e
Update test expectation to match latest rules
pombredanne 94ee3ae
Track stopwords in license queries and matches
pombredanne 3d6e021
Requalify some bsd-new and bsd-simplified rules
pombredanne 6bb69a3
Correct is_license_text flags
pombredanne 3b63933
Treat consistently third-party SDPX licenseref
pombredanne 8c2d12e
Add new rules and improve existing license rules
pombredanne 6014264
Fix YAML syntax
pombredanne a5610a1
Bump relevance for SPDX id
pombredanne 25e12aa
Rename test method for clarity
pombredanne 6b04eb4
Use separate index and query tokenizer functions
pombredanne 284f4c5
Improve filter_if_only_known_words_rule()
pombredanne db8a535
Update query_tokenizer tests
pombredanne 265e7d3
Correctly track positions with stopwords present
pombredanne 28f29c9
Use query_string argument where needed
pombredanne ce990bc
Add kde-accepted licenses to rules
pombredanne 2a2efc7
Align test expectations with latest rules set
pombredanne 4a89a9b
Add new license detection rules
pombredanne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
src/licensedcode/data/rules/gpl-1.0_16.yml → .../data/rules/gpl-1.0_gpl_10_bare_words.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
license_expression: gpl-1.0 | ||
is_license_tag: yes | ||
relevance: 100 | ||
relevance: 60 | ||
only_known_words: yes | ||
|
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
src/licensedcode/data/rules/gpl-2.0_693.yml → .../data/rules/gpl-2.0_gpl_20_bare_words.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
license_expression: gpl-2.0 | ||
is_license_tag: yes | ||
relevance: 100 | ||
relevance: 60 | ||
only_known_words: yes | ||
|
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
src/licensedcode/data/rules/gpl-3.0_126.yml → .../data/rules/gpl-3.0_gpl_30_bare_words.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
license_expression: gpl-3.0 | ||
is_license_tag: yes | ||
relevance: 100 | ||
relevance: 60 | ||
only_known_words: yes | ||
|
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.
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.
❤️
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.
:)