Sync notice and year
leoll2 opened this issue · 0 comments
leoll2 commented
Copyright notices which include a year, e.g. Copyright 2021 Acme Co.
, should be updated when the year changes.1
This pre-commit could support it in various ways:
- Check if the template contains a year which is not the current one
- Test the source files against a variable-year notice template and flag those files whose year doesn't match the actual one.
1 Actually, depending on the laws, this is not strictly required after the software has been released. It's still useful while the software is being developed, though.