Skip to content

Commit 412358a

Browse files
committed
Refine copyright detection
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 3bccb31 commit 412358a

File tree

5 files changed

+1
-15
lines changed

5 files changed

+1
-15
lines changed

src/cluecode/copyrights.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,9 +2014,6 @@ def build_detection_from_node(
20142014
# slash dates as in 08/95
20152015
(r'^(0?[1-9]|1[012])/[6-9][0-9][\.,]?$', 'YR'),
20162016

2017-
# ISO Dates: YYYY-MM-DD
2018-
(fr'^{_YEAR}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$', 'YR'),
2019-
20202017
# weird year
20212018
(r'today.year', 'YR'),
20222019
(r'^\$?LastChangedDate\$?$', 'YR'),
@@ -3105,10 +3102,6 @@ def build_detection_from_node(
31053102
# 1995-2003 by Internet Software Consortium
31063103
COPYRIGHT: {<COPYRIGHT> <NN> <YR-RANGE> <BY> <COMPANY> } #1615
31073104
3108-
# Russ Dill <Russ.Dill@asu.edu> 2001-2003
3109-
# Rewrited by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003
3110-
COPYRIGHT: {<NAME-EMAIL> <YR-RANGE> <AUTH2> <BY> <NAME-EMAIL> <COPY> <YR-RANGE>} #22793.5
3111-
31123105
# portions copyright The Internet Society, Tom Tromey and Red Hat, Inc.
31133106
COPYRIGHT: {<PORTIONS> <COPY> <NN> <NAME>} #157998
31143107

tests/cluecode/data/authors/author_russ_c-c.c.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ what:
44
- copyrights
55
- holders
66
copyrights:
7-
- Russ Dill <Russ.Dill@asu.edu> 2001-2003
87
- Vladimir Oleynik <dzo@simtreas.ru> (c) 2003
98
holders:
10-
- Russ Dill
119
- Vladimir Oleynik
1210
notes: these are detected as copyrights, not authors

tests/cluecode/data/copyrights/name_before_c-c.c.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ what:
33
- holders
44
- holders_summary
55
copyrights:
6-
- Russ Dill <Russ.Dill@asu.edu> 2001-2003
76
- Vladimir Oleynik <dzo@simtreas.ru> (c) 2003
87
holders:
9-
- Russ Dill
108
- Vladimir Oleynik
119
holders_summary:
12-
- value: Russ Dill
13-
count: 1
1410
- value: Vladimir Oleynik
1511
count: 1

tests/cluecode/data/ics/chromium-chrome-common-extensions-docs-examples-extensions-benchmark-jquery/jquery-1.4.2.min.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ what:
44
- holders_summary
55
copyrights:
66
- Copyright 2010, John Resig
7-
- http://sizzlejs.com Copyright 2010, The Dojo Foundation
7+
- Copyright 2010, The Dojo Foundation
88
holders:
99
- John Resig
1010
- The Dojo Foundation

tests/cluecode/test_copyrights_fosso.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
'test_fossology_copyright_testdata19',
3333
'test_fossology_copyright_testdata78',
3434
'test_fossology_copyright_testdata86',
35-
'test_fossology_copyright_testdata93',
3635
])
3736

3837

0 commit comments

Comments
 (0)