Skip to content

Commit 7db3bea

Browse files
committed
Enhance LintSpdxCommand with contributor tracking and header normalization
Improves SPDX header linting to ensure consistent license metadata across the codebase. Key changes: - Enforce deterministic tag ordering (License-Identifier, FileCopyrightText, FileContributor) to ensure consistency, prevent merge conflicts, and simplify code reviews - Add contributor alias mapping to consolidate contributors with multiple emails or name variations (e.g., "nickl-" → "Nick Lombard") - Add --contributions-strategy option with "blame" (current code authors) and "log" (all historical contributors) to support different attribution philosophies - Add optional path argument to lint specific files or directories - Add --fix option to automatically correct header issues Assisted-by: Claude Code (claude-opus-4-5-20251101)
1 parent 1b584d8 commit 7db3bea

File tree

209 files changed

+766
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+766
-240
lines changed

bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ return (static function () {
4444
new ValidatorChangelogLinter(),
4545
)));
4646
$application->addCommand(new LintMixinCommand($differ));
47-
$application->addCommand(new LintSpdxCommand());
47+
$application->addCommand(new LintSpdxCommand($differ));
4848
$application->addCommand(new UpdateDomainSuffixesCommand($dataSaver));
4949
$application->addCommand(new UpdateDomainToplevelCommand($dataSaver));
5050
$application->addCommand(new UpdatePostalCodesCommand($dataSaver));

docs/case-sensitiveness.md

Lines changed: 1 addition & 1 deletion

docs/comparable-values.md

Lines changed: 1 addition & 1 deletion

docs/comparing-empty-values.md

Lines changed: 1 addition & 1 deletion

docs/custom-validators.md

Lines changed: 1 addition & 1 deletion

docs/feature-guide.md

Lines changed: 1 addition & 1 deletion

docs/getting-started.md

Lines changed: 1 addition & 1 deletion

docs/handling-exceptions.md

Lines changed: 1 addition & 1 deletion

docs/handling-results.md

Lines changed: 1 addition & 1 deletion

docs/index.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)