Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Update copyright year (2024) #336

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

furkatgofurov7
Copy link
Contributor

What this PR does / why we need it:
This PR enables the header linter to automatically detect files without license headers and not following the reference header in go files.

Also, add a header to some .go files missing it, and change the current ones to use year range, including Dockerfile/Makefile and bash scripts.
In the future, we should detect problems earlier with this linter, hence less work hopefully.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

The linter will run as part of the CI and makes sure all go files
contain the license copyright header defined in the .golangci.yaml file.
Please note, it will only check files in current year.

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
It also adds license headers to few missing go files, Dockerfile
and Makefile

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
@furkatgofurov7 furkatgofurov7 merged commit b81f85e into rancher:main Jan 8, 2024
13 checks passed
@furkatgofurov7 furkatgofurov7 deleted the update-copyright-year branch January 8, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants