Skip to content

Commit a83666a

Browse files
authored
Merge pull request #2701 from nexB/improve-copyright-detection
Improve copyright detection
2 parents eee8640 + 7e6bcf7 commit a83666a

File tree

12 files changed

+41
-15
lines changed

12 files changed

+41
-15
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ jobs:
6161
bin/pytest -n 3 -vvs --test-suite=all \
6262
tests/licensedcode/test_detection_datadriven_external.py
6363
64-
license_validate_basic: |
65-
bin/pytest -n 3 -vvs --test-suite=validate \
66-
tests/licensedcode/test_detection_validate.py \
67-
-k TestValidateLicenseBasic
68-
6964
license_validate_ext_1: |
7065
bin/pytest -n 3 -vvs --test-suite=validate \
7166
tests/licensedcode/test_detection_validate.py \

src/cluecode/copyrights.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,8 @@ def from_node(
10441044
(r'^JMagnetic$', 'NN'),
10451045
(r'^Joint$', 'NN'),
10461046
(r'^Jsunittest$', 'NN'),
1047+
(r'^List$', 'NN'),
1048+
(r'^Set$', 'NN'),
10471049
(r'^Last$', 'NN'),
10481050
(r'^LAW', 'NN'),
10491051
(r'^Legal$', 'NN'),
@@ -2215,7 +2217,7 @@ def from_node(
22152217
COPYRIGHT: {<COPY>+ <YR-RANGE> <NN> <NNP>} #22792
22162218
22172219
# Copyright (c) 2017 odahcam
2218-
COPYRIGHT: {<COPY>+ <YR-RANGE> <NN> <ALLRIGHTRESERVED>?} #22793
2220+
COPYRIGHT: {<COPY>+ <YR-RANGE> <NN>+ <ALLRIGHTRESERVED>?} #22793
22192221
22202222
# Licensed material of Foobar Company, All Rights Reserved, (C) 2005
22212223
COPYRIGHT: {<COMPANY> <ALLRIGHTRESERVED> <COPYRIGHT>} #22794

src/licensedcode/data/licenses/accellera-systemc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ homepage_url: https://www.accellera.org/images/about/policies/SystemC_Open_Sourc
77
spdx_license_key: LicenseRef-scancode-accellera-systemc
88
faq_url: https://accellera.org/about/policies-and-procedures
99
ignorable_copyrights:
10-
- (c) 1996- current
10+
- (c) 1996- current year here
11+
- (c) 1996- current year here by all Contributors
1112
- Copyright (c) 1996- current year here by all Contributors
1213
ignorable_authors:
1314
- through the Accellera working group process
1415
ignorable_holders:
16+
- here
1517
- here by all Contributors
1618
ignorable_urls:
1719
- http://www.accellera.org/

src/licensedcode/data/licenses/sata.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ other_urls:
99
- https://github.com/zTrix/sata-license
1010
- https://github.com/kongtianyi/sata-license
1111
ignorable_copyrights:
12-
- Copyright (c) 2014 zTrix([email protected])
12+
- Copyright (c) 2014 zTrix([email protected]) kongtianyi([email protected])
1313
ignorable_holders:
14-
14+
1515
ignorable_urls:
1616
- https://github.com/kongtianyi/sata-license
1717
- https://github.com/zTrix/sata-license
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# Copyright (c) 2007-2010 Sharon Rosner, Wayne E. Seguin, Aman Gupta, Adrian Madrid, Jeremy Evans
3+
module List
4+
# Set
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
what:
2+
- copyrights
3+
copyrights:
4+
- Copyright (c) 2007-2010 Sharon Rosner, Wayne E. Seguin, Aman Gupta, Adrian Madrid, Jeremy Evans
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Files: src/macos/src/macos_main.cpp
2+
Copyright: 2001, Eric Lavigne
3+
License: curl
4+
5+
Files: docs/examples/rtsp.c
6+
Copyright: 2011, Jim Hollinger
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
what:
2+
- copyrights
3+
copyrights:
4+
- Copyright 2001, Eric Lavigne
5+
- Copyright 2011, Jim Hollinger
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (c) 2014-2018 the native web.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
what:
2+
- copyrights
3+
- holders
4+
copyrights:
5+
- Copyright (c) 2014-2018 the native web
6+
holders:
7+
- the native web

0 commit comments

Comments
 (0)