Skip to content

Commit 82e207c

Browse files
committed
Improve copyright detection accuracy
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 6df90d5 commit 82e207c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cluecode/copyrights.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ def build_detection_from_node(
726726
# Short words skipping some leading caps
727727
(r'^[BEFHJMNPQRTUVW][a-z]$', 'NN'),
728728

729+
# three or more AsCamelCase GetQueueReference
730+
(r'^([A-Z][a-z]+){3,}$', 'JUNK'),
731+
729732
# misc exceptions
730733
(r'^dead_horse$', 'NN'),
731734
(r'^A11yance', 'NNP'),
@@ -897,6 +900,7 @@ def build_detection_from_node(
897900
(r'^Should$', 'JUNK'),
898901
(r'^[Ll]icensing\@?$', 'JUNK'),
899902
(r'^Disclaimer$', 'JUNK'),
903+
(r'^Directive$', 'JUNK'),
900904
(r'^LAWS\,?$', 'JUNK'),
901905
(r'^[Ll]aws?,?$', 'JUNK'),
902906
(r'^me$', 'JUNK'),

0 commit comments

Comments
 (0)