-
-
Notifications
You must be signed in to change notification settings - Fork 600
Update rules with required phrases automatically #3924
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
Merged
pombredanne
merged 91 commits into
develop
from
update-rules-with-required-phrases-auto
Apr 10, 2025
Merged
Changes from 89 commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
aa9374c
Add script for adding required phrases automatically
AyanSinhaMahapatra 72f290f
Add required phrases automatically for mit rules
AyanSinhaMahapatra bd14127
Add required phrases at bsd-new rules automatically
AyanSinhaMahapatra 20a7860
Add required phrases automatically for gpl-2.0
AyanSinhaMahapatra 0a44594
Add required phrases for gpl-2.0-only rules automatically
AyanSinhaMahapatra 435255b
Skip creating required phrase rules for generic licenses
AyanSinhaMahapatra 12eaccf
Add required phrases for genreic license rules automtaically
AyanSinhaMahapatra ece8c33
Add required phrases to gpl-1.0-plus rules automatically
AyanSinhaMahapatra be94a84
Add required phrases automatically on gpl/lgpl rules
AyanSinhaMahapatra 584b554
Add more required phrases automatically in permissive rules
AyanSinhaMahapatra c778ce0
Add required phrases automatically to gpl-3.0 rules
AyanSinhaMahapatra f5e9593
Add required phrases for lgpl rules automatically
AyanSinhaMahapatra 63c23f0
Add required phrases for agpl rules automatically
AyanSinhaMahapatra 40ced0c
Add required phrases to bsd rules automatically
AyanSinhaMahapatra 518116d
Add required phrases in lgpl rules automatically
AyanSinhaMahapatra 3583ac6
Add required phrases automatically for cc rules
AyanSinhaMahapatra 1994095
Improve license detection rules
pombredanne 4d1b8ac
Improve required phrases in paths
pombredanne ef5101e
Improve required phrases in paths
pombredanne 8e615bb
Improve required phrases in URLs
pombredanne 6831e90
Correct rule syntax
pombredanne e05ca6f
Move back required-phrase related code
pombredanne 94cffc9
Use correct syntax for rules
pombredanne 62643cb
Apache Software Foundation is not required phrase
pombredanne 7150b82
Remove duplicate imports
pombredanne 83eadec
Improve license models
pombredanne 41be5e2
Apply minor cosmetic refactoring
pombredanne 512de1e
Move tests to test_required_phrase.py
pombredanne d611f9b
Add misc comments to Token class variants
pombredanne 7d5199a
Refine is_required_phrase license rules
pombredanne 05f7981
Ensure license index is buildable with extras
pombredanne 451fffb
Refactor required phrase spans collection
pombredanne 86d69b6
Refine is_required_phrase AGPL rules
pombredanne 4a49447
Refine is_required_phrase GPL3 rules
pombredanne 7fed520
Refine is_required_phrase GPL rules
pombredanne 4bf01c8
Refine is_required_phrase LGPL rules
pombredanne a6bbfa7
Refine is_required_phrase Apache rules
pombredanne 9470393
Refine is_required_phrase BSD rules
pombredanne fd10501
Add new and improved required phrase rules
pombredanne 9cee2cb
Refine rules skipped for required phrase
pombredanne 8e16712
Rename Rule.skip_collecting_required_phrases
pombredanne 1bcf3fc
Update required phrase generation
pombredanne c99d26a
Make rules valid
pombredanne 28e2ef4
Improve required phrase in rules
pombredanne 3ad7302
Update test results
pombredanne c275355
Correct rule ignorables
pombredanne 1d1a99c
Set relevance for is_required_phrase rules
pombredanne 4e598bf
Fix duplicate license rules
pombredanne 1d503f4
Adjust rules from required phrase tests
pombredanne d0b33f8
Improve Apache and commons clause rules
pombredanne 543d47c
Improve imagemagick rules with required phrases
pombredanne 359fa84
Improve rule selectivity
pombredanne 3c0858e
Do not add required phrase to license text
pombredanne b64794c
Improve license test results
pombredanne 848dab1
Consider license clues in gibberrish filter
pombredanne 4cfaa8a
Use correct dry_run argument name in tests
pombredanne 2607e0d
Update license test expectation
pombredanne 243ba18
Consider clues in false positive filter
pombredanne 10e0181
Fix comment content
pombredanne f6d7fe6
Add required phrase to MIT rule
pombredanne 2fd0dd7
Improve license test results
pombredanne f6b7196
Improve license rules and license tests
pombredanne 1802857
Rename new rules to resolve merge conflicts
pombredanne 68c92a2
Merge latest develop
pombredanne 4b41c62
Improve rule ignorables and requried phrases
pombredanne 34d8b4e
Adapt license test expectations
pombredanne 5659d1c
Do not debug trace by default
pombredanne f4c0c6b
Improve license detection results
pombredanne fc46065
Refine license detection rules
pombredanne cb271b8
Improve license detection results
pombredanne 4f15de1
Add new license rule for LGPL
pombredanne 28e871f
Improve GPL detection
pombredanne 46135a4
Improve license detection tests
pombredanne 5635edf
Add new GPL rules
pombredanne 28e1acb
Improve MPL tri-license detection
pombredanne 584e3d6
Add new DCO licenses
pombredanne 160e95b
Add new license detection rules
pombredanne e5bff98
Improve license detection tests
pombredanne 6eff903
Relax required phrase filtering
pombredanne e3fc9c9
Correct license test expectation
pombredanne 94a4d35
Correct license rule expression
pombredanne 4718fed
Update expected license test result
pombredanne ac28196
Add required phrases for mpl rules automatically
AyanSinhaMahapatra 3438f99
Add required phrases automatically for more rules
AyanSinhaMahapatra de19fbe
Merge branch 'develop' into update-rules-with-required-phrases-auto
AyanSinhaMahapatra c821616
Improve ISC rules and tests
pombredanne c40e404
Update test expectations
pombredanne 4211d02
Improve detection of BSD license
pombredanne ca1c70f
Filter key phrases for continuity correctly
pombredanne f31d0ef
Avoid heisen failures in CI
pombredanne f837a38
Avoid failures in failure reporting
pombredanne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This software is (C) by the respective authors, and licensed under the GPL | ||
License. | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
key: dco-1.0 | ||
short_name: DCO 1.0 | ||
name: Developer Certificate of Origin 1.0 | ||
category: CLA | ||
owner: Linux Foundation | ||
homepage_url: https://developercertificate.org/ | ||
spdx_license_key: LicenseRef-scancode-dco-1.0 | ||
text_urls: | ||
- https://developercertificate.org/ | ||
other_urls: | ||
- https://github.com/nexB/scancode-toolkit/issues/3038#issuecomment-1317511139 | ||
minimum_coverage: 90 | ||
--- | ||
|
||
Developer's Certificate of Origin 1.0 | ||
|
||
By making a contribution to this project, I certify that: | ||
|
||
1. The contribution was created in whole or in part by me and I | ||
have the right to submit it under the open source license | ||
indicated in the file LICENSE; or | ||
|
||
2. The contribution is based upon previous work that, to the best | ||
of my knowledge, is covered under an appropriate open source | ||
license and I have the right under that license to submit that | ||
work with modifications, whether created in whole or in part | ||
by me, under the same open source license (unless I am | ||
permitted to submit under a different license), as indicated | ||
in the file LICENSE; or | ||
|
||
3. The contribution was provided directly to me by some other | ||
person who certified (1), (2) or (3) and I have not modified | ||
it. | ||
|
||
4. I understand and agree that this project and the contribution | ||
are public and that a record of the contribution (including all | ||
personal information I submit with it, including my sign-off) is | ||
maintained indefinitely and may be redistributed consistent |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
key: samba-dco-1.0 | ||
short_name: Samba Developer's Declaration, Version 1.0 | ||
name: Samba Developer's Declaration, Version 1.0 | ||
category: CLA | ||
owner: Samba | ||
homepage_url: https://github.com/samba-team/samba/blob/master/README.contributing | ||
spdx_license_key: LicenseRef-scancode-samba-dco-1.0 | ||
text_urls: | ||
- https://github.com/samba-team/samba/blob/master/README.contributing | ||
minimum_coverage: 80 | ||
ignorable_urls: | ||
- http://www.gnu.org/licenses/gpl-3.0.html | ||
- http://www.gnu.org/licenses/lgpl-3.0.html | ||
--- | ||
|
||
Samba Developer's Declaration, Version 1.0 | ||
|
||
By making a contribution to this project, I certify that: | ||
|
||
(a) The contribution was created in whole or in part by me and I | ||
have the right to submit it under the appropriate | ||
version of the GNU General Public License; or | ||
|
||
(b) The contribution is based upon previous work that, to the best | ||
of my knowledge, is covered under an appropriate open source | ||
license and I have the right under that license to submit that | ||
work with modifications, whether created in whole or in part | ||
by me, under the GNU General Public License, in the | ||
appropriate version; or | ||
|
||
(c) The contribution was provided directly to me by some other | ||
person who certified (a) or (b) and I have not modified | ||
it. | ||
|
||
(d) I understand and agree that this project and the | ||
contribution are public and that a record of the | ||
contribution (including all metadata and personal | ||
information I submit with it, including my sign-off) is | ||
maintained indefinitely and may be redistributed | ||
consistent with the Samba Team's policies and the | ||
requirements of the GNU GPL where they are relevant. | ||
|
||
(e) I am granting this work to this project under the terms of both | ||
the GNU General Public License and the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either version | ||
3 of these Licenses, or (at the option of the project) any later | ||
version. | ||
|
||
http://www.gnu.org/licenses/gpl-3.0.html | ||
http://www.gnu.org/licenses/lgpl-3.0.html |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.