Open
Description
Feature Description
Many, many times I have either forgotten to add the copyright/license text when adding a new file, or I get the year wrong. (Sometimes I manage to do both!)
It would be nice to have a CI check that validates the presence of the license text with the correct copyright year.
This check should support either an allow list or an ignore list so that we can skip files that don't require a license; config files, documentation, and so on.
I'd propose the check works as follows:
- Fail if a new file has an invalid license
- Fail if an updated file that should have a license (based on the allow/ignore lists) does not (i.e., a past developer perhaps forgot to add it (looking at myself here!))
- Warn if an updated file has an invalid copyright year
Use Case(s)
Noted above. :)