Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ v33.0.0 - 2026-10-30

- Improve copyright detection for statements with parens or trailing "authors"

- Fix copyright and holder detection cut off when a holder list has a name
followed by a company such as "Mikael Grev, MiG InfoCom AB." and an
obfuscated email like "(foo (at) bar (dot) com)".
https://github.com/aboutcode-org/scancode-toolkit/issues/5574

- Add experimental option for using cached results during scan time. When the
``--use-cached-results`` option is enabled in the ScanCode CLI, during scan
time for a given Resource, we iterate through the active scanners and see if we
Expand Down
6 changes: 3 additions & 3 deletions src/cluecode/copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,9 +1262,6 @@ def build_detection_from_node(
# by PaX Team
(r"PaX$", 'NN'),

# short mixed caps with trailing cap: ZoY
(r"[A-Z][a-z][A-Z]$", 'JUNK'),

(r'^Tokenizers?$', 'JUNK'),
(r'^Analyzers?$', 'JUNK'),
(r'^PostingsFormats?$', 'JUNK'),
Expand Down Expand Up @@ -2118,6 +2115,7 @@ def build_detection_from_node(
(r'^and/or$', 'CC'),
(r'^&$', 'CC'),
(r'^at$', 'CC'),
(r'^\(at\)$', 'CC'),
(r'^et$', 'CC'),
(r'^Et$', 'CC'),
(r'^ET$', 'CC'),
Expand Down Expand Up @@ -2371,6 +2369,8 @@ def build_detection_from_node(

# dot in: fooo at bar dot com
(r'^dot$', 'DOT'),
# obfuscated emails with parens: fooo (at) bar (dot) com
(r'^\(dot\)$', 'DOT'),

# moment/moment is an odd name
(r'moment/moment$', 'NAME'),
Expand Down
10 changes: 10 additions & 0 deletions tests/cluecode/data/copyrights/miglayout_mig_infocom.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* License (BSD):
* ==============
*
* Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*/
11 changes: 11 additions & 0 deletions tests/cluecode/data/copyrights/miglayout_mig_infocom.txt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
what:
- copyrights
- holders
- holders_summary
copyrights:
- Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com)
holders:
- Mikael Grev, MiG InfoCom AB.
holders_summary:
- value: Mikael Grev, MiG InfoCom AB.
count: 1
Loading