Skip to content

Fix: Use dynamic year for copyright headers#4116

Merged
jamesarich merged 1 commit into
mainfrom
feat/licensing
Jan 2, 2026
Merged

Fix: Use dynamic year for copyright headers#4116
jamesarich merged 1 commit into
mainfrom
feat/licensing

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This commit updates the copyright headers to be more flexible and maintainable.

  • Replaced the hardcoded year 2025 with the dynamic $YEAR variable in Spotless configuration files. This allows Spotless to automatically insert the correct year.
  • Updated the Detekt license template to use a regular expression for validating copyright years (e.g., 2025 or 2025-2026), making the check more robust for files with a range of years.
  • Updated copyright year ranges in various source files to 2025-2026.
  • Removed extraneous newlines from copyright headers for consistency.

This commit updates the copyright headers to be more flexible and maintainable.

*   Replaced the hardcoded year `2025` with the dynamic `$YEAR` variable in Spotless configuration files. This allows Spotless to automatically insert the correct year.
*   Updated the Detekt license template to use a regular expression for validating copyright years (e.g., `2025` or `2025-2026`), making the check more robust for files with a range of years.
*   Updated copyright year ranges in various source files to `2025-2026`.
*   Removed extraneous newlines from copyright headers for consistency.
@jamesarich jamesarich added repo Repository maintenance chore labels Jan 2, 2026
@github-actions github-actions Bot added the enhancement New feature or request label Jan 2, 2026
@jamesarich jamesarich enabled auto-merge January 2, 2026 18:12
@codecov

codecov Bot commented Jan 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (b3ebe76) to head (09237ff).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4116   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          2       2           
  Lines         19      19           
  Branches       7       7           
=====================================
  Misses        19      19           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Jan 2, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 2, 2026
@jamesarich jamesarich added this pull request to the merge queue Jan 2, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 2, 2026
@jamesarich jamesarich merged commit 6950c8f into main Jan 2, 2026
10 checks passed
@jamesarich jamesarich deleted the feat/licensing branch January 2, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore enhancement New feature or request repo Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant