Skip to content
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

New license and copyright rule #2837

Merged
merged 3 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/cluecode/copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -2562,6 +2562,9 @@ def build_detection_from_node(
#holder is Tim Hudson (tjh@mincom.oz.au).
COPYRIGHT: {<HOLDER> <JUNK> <NAME-EMAIL>} #83001

# Copyright lowRISC contributors.
COPYRIGHT: {<COPY> <NN> <CONTRIBUTORS>}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great! do you mind to add a test for this too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing :)

#######################################
# Authors
#######################################
Expand Down
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/apache-2.0_1076.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Licensed under the Apache License, Version 2.0, see LICENSE for details
5 changes: 5 additions & 0 deletions src/licensedcode/data/rules/apache-2.0_1076.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
license_expression: apache-2.0
relevance: 100
is_license_notice: yes
referenced_filenames:
- LICENSE
1 change: 1 addition & 0 deletions tests/cluecode/data/copyrights/toolchain.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright lowRISC contributors.
11 changes: 11 additions & 0 deletions tests/cluecode/data/copyrights/toolchain.txt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
what:
- copyrights
- holders
- holders_summary
copyrights:
- Copyright lowRISC contributors
holders:
- lowRISC contributors
holders_summary:
- value: lowRISC contributors
count: 1