Skip to content

Commit 20207d6

Browse files
committed
Improve copyright detection for #191
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 51c3d53 commit 20207d6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/cluecode/copyrights.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def detect(location):
198198
(r'^AppPublisher$', 'JUNK'),
199199
(r'^DISCLAIMS?|SPECIFICALLY|WARRANT(Y|I)E?S?$', 'JUNK'),
200200
(r'^(hispagestyle|Generic|Change|Add|Generic|Average|Taken|LAWS\.?|design|Driver)$', 'JUNK'),
201+
(r'^(C|c)ontribution\.?', 'JUNK'),
201202
# Windows XP
202203
(r'^(Windows|XP|SP1|SP2|SP3|SP4)$', 'JUNK'),
203204

tests/cluecode/test_copyrights.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4012,9 +4012,7 @@ def test_copyright_rimini(self):
40124012
expected = ['(c) Copyright 2000 Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), [email protected]']
40134013
check_detection(expected, test_file)
40144014

4015-
@expectedFailure
4016-
def test_copyright_should_not_detected_in_apache_html(self):
4017-
# This should not detect a copyright see #191
4015+
def test_copyright_should_not_be_detected_in_apache_html(self):
40184016
test_file = self.get_test_loc('copyrights/copyright_apache_in_html.html')
40194017
expected = []
40204018
check_detection(expected, test_file)

0 commit comments

Comments
 (0)