Skip to content
Snippets Groups Projects

License year updator

Merged Paul Gessinger requested to merge license_year_updator into master

Modify check_license.py to look at git history to determine what the year range in the license should be. You can tell it to fix offending license statements using --fix. The checker reports but does not fail by default when encountering problems.

A commit can be tagged with [ignore-license] to tell the checker to not consider that commit when determining modification dates. This is useful if we're changing just the license statement in a commit, as I did for this MR.

This MR also updates all files to have the "correct" license statement.

I'd propose the CI to not fail if the year is invalid, but to just mention it in the format job output.

What do you think?

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading