Skip to content

Commit

Permalink
Detect NN/EMAIL copyright combo #3764
Browse files Browse the repository at this point in the history
Reference: #3764
Reported-by: Anton Augsburg @vw-anton
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed May 6, 2024
1 parent 5294521 commit ab6699f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cluecode/copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -2718,7 +2718,9 @@ def build_detection_from_node(
# Copyright (c) 2019-2021, Open source contributors.
# Copyright 2007 ZXing authors
# Copyright (c) 2002 the Initial Developer
COPYRIGHT: {<COPY>+ <YR-RANGE> <NN>+ <CONTRIBUTORS|COMMIT|AUTHS|MAINT>? <ALLRIGHTRESERVED>?} #22793
# Copyright (c) brandonocasey <brandonocasey@gmail.com>
# Copyright (c) 2024 bgme <i@bgme.me>.
COPYRIGHT: {<COPY>+ <YR-RANGE>? <NN>+ <CONTRIBUTORS|COMMIT|AUTHS|MAINT>? <EMAIL>? <ALLRIGHTRESERVED>?} #22793.3
# Licensed material of Foobar Company, All Rights Reserved, (C) 2005
COPYRIGHT: {<COMPANY> <ALLRIGHTRESERVED> <COPYRIGHT>} #22794
Expand Down
6 changes: 6 additions & 0 deletions tests/cluecode/data/copyrights/misco2/copyright-nn.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Copyright (c) brandonocasey <brandonocasey@gmail.com>




Copyright (c) 2024 bgme <i@bgme.me>.
15 changes: 15 additions & 0 deletions tests/cluecode/data/copyrights/misco2/copyright-nn.txt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
what:
- copyrights
- holders
- holders_summary
copyrights:
- Copyright (c) brandonocasey <brandonocasey@gmail.com>
- Copyright (c) 2024 bgme <i@bgme.me>
holders:
- brandonocasey
- bgme
holders_summary:
- value: bgme
count: 1
- value: brandonocasey
count: 1

0 comments on commit ab6699f

Please sign in to comment.