You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copyright start year defaults to the year of the run instead of the file's @Date year #85
area: coreTouches core library / runtime source codepriority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
@Copyright: Copyright (c) <start>-<end> <company> All rights reserved. takes <start> from copyrightStartYear, else the current year of the run — the same for every file (src/detect/project.mjs: copyrightStartYear: … : currentYear). A file created in 2019 gets 2026-2026 when fix-headers first runs in 2026.
Expected
copyrightStartYear set → that year (unchanged).
Not set → the year of the file's @Date (the resolved creation date: the existing header value, or oldest-wins from git / filesystem for a new header, after fixCreatedDate if enabled), in the time zone the date is written in (timezone if set, else the date's own offset).
<end> stays the current year of the run (expected: the latest year the file changed).
Tests
Existing header with a 2019 @Date → 2019-<current>; new header from a git first commit in a past year; copyrightStartYear still wins; a @Date near New Year where the year depends on the offset / timezone; fixCreatedDate moving @Date into an earlier year moves the start year with it.
area: coreTouches core library / runtime source codepriority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
fix: take the copyright start year from the file's @Date year
fix: take the copyright start year from the file's @Date year
cldmv-bot commentedon Sep 29, 2026
Marked
status: implemented— resolved by #89, merged intonext. This issue closes automatically when that work ships to the default branch.release: v2.0.0 - re-cut the release notes as v2.0.0