Skip to content

Improve copyrights detection - #2590

Merged
pombredanne merged 13 commits into
developfrom
copyrights-improvements
Jul 11, 2021
Merged

Improve copyrights detection#2590
pombredanne merged 13 commits into
developfrom
copyrights-improvements

Conversation

@pombredanne

Copy link
Copy Markdown
Member

This PR makes several improvement to copyright detection

And other minor improvements

This is more explicit and readable

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have correct license numbers returned by copyright and authors
detection. Also fix some minor copyright detection issues.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
This is required for the new, better and faster copyright detection

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
If there is only a lien trailing with a year, AND or BY we consider
the next empty line as part of the copyright statement.

Also treat some camel case as JUNK and Module as NN

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Also used in tests

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
- Allow multiline copyright detection with an empty line if ending with
  a conjunction or a year.
- Do not treat Free as an NNP
- Better handle leading and trailing comment line markers
- Always enable tracing with deep tracing

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Also align setup-mini.cfg with setup.cfg

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the copyrights-improvements branch from e7e6c9e to acd8b5a Compare July 11, 2021 12:20
@pombredanne

Copy link
Copy Markdown
Member Author

This is all green. Merging now

@pombredanne
pombredanne merged commit 249eb2c into develop Jul 11, 2021
@pombredanne
pombredanne deleted the copyrights-improvements branch July 11, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant