Repository navigation
Fix copyright cut off after name, company and obfuscated email - #5575
Open
iLakshya04 wants to merge 1 commit into
Open
iLakshya04 wants to merge 1 commit into
iLakshya04 wants to merge 1 commit into
Conversation
A three-letter mixed-case word such as MiG was lexed as JUNK, which broke the name, company chain so the copyright and holder stopped at the name. Remove that rule, and lex parenthesized (at) and (dot) like at and dot so the obfuscated email is recognised and left out of the holder. Reference: aboutcode-org#5574 Signed-off-by: Lakshya <152306273+iLakshya04@users.noreply.github.com>
iLakshya04
force-pushed
the
fix/5574-copyright-name-company-obfuscated-email
branch
from
December 2, 2026 05:07
9591cfa to
e225a52
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5574
Problem
For
Copyright (c) 2004, Mikael Grev, MiG InfoCom AB. (miglayout (at) miginfocom (dot) com), ScanCode returned the copyrightCopyright (c) 2004, Mikael Grevand the holderMikael Grev. The company was cut off.Cause
[A-Z][a-z][A-Z]$->JUNK(meant for junk likeZoY) also matchedMiG. That broke the name, company chain.(at)and(dot)in parens were not lexed like the existingatanddot.Change
JUNKrule.(at)asCCand(dot)asDOT, so the existingfoo at bar dot comemail rule applies.miglayout_mig_infocom.txt) and a CHANGELOG entry.Holder is now
Mikael Grev, MiG InfoCom AB.. The copyright still includes the parenthesized email, as it does for other holders followed by an email. The issue's expected copyright stops before the email, so tell me if you want that changed.Testing
tests/cluecodewith--test-suite=all: 5143 passed. The same 35 tests fail with and without my change.typecodestubbed. I believe the 35 failures are from that: 10 plugin tests fail with import errors, and the other 25 (html, mp4, pixelstream and similar) I assumed are file-type related but did not check one by one. Please rely on CI for the full result.JUNKrule changed no existing test result, but I cannot rule out effects on other inputs.Commit is signed off (DCO).