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

fix: handling license headers in source code #946

Merged
merged 6 commits into from Mar 10, 2023

Conversation

chrisgacsal
Copy link
Contributor

Q A
Bug fix? no
New feature? no
API breaks? no
Deprecations? no
Related tickets -
License Apache 2.0

What's in this PR?

Changes:

  • golangci-lint configuration is updated to check license headers in source code files
  • addlicense CLI tool is added to check/fix license headers

Use the make license-header-check to check existing files for license header or make license-header-fix to add license header to new source code files avoiding copy/paste errors.
Be aware that addlicense CLI command does not fix files with incorrectly formatted license header, thus those need to be fixed manually.

@chrisgacsal chrisgacsal requested a review from a team as a code owner March 10, 2023 18:59
@chrisgacsal chrisgacsal self-assigned this Mar 10, 2023
pregnor
pregnor previously approved these changes Mar 10, 2023
@chrisgacsal chrisgacsal merged commit b943eef into master Mar 10, 2023
@chrisgacsal chrisgacsal deleted the fix-copyright-headers branch March 10, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants