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

correct license years & preamble #634

Merged
merged 4 commits into from
Sep 20, 2022
Merged

correct license years & preamble #634

merged 4 commits into from
Sep 20, 2022

Conversation

intrand
Copy link
Contributor

@intrand intrand commented Sep 20, 2022

This PR fixes #

Checklist

  • I have signed the CLA
  • I have updated/added any relevant documentation

Description

What's the goal of this PR?

provide accurate copyright information where appropriate

What changes did you make?

  1. Determined which .go files had the copyright preamble:

    find . -type f -not -path "./.git*" -not -path "./.*" -iname "*.go" -exec grep -HcE "Copyright 202[0-9] Fairwinds" {} \; | grep -v 'go:0'
  2. Manually add preambles to any .go files which didn't contain them.

  3. Remove the first two lines from all .go files:

    for i in $(find . -type f -not -path "./.git*" -not -path "./.*" -iname "*.go" -exec grep -HcE "Copyright 202[0-9] Fairwinds" {} \; | grep -v 'go:0' | cut -d':' -f1); do awk -i inplace 'NR > 2' "${i}"; done;

What alternative solution should we consider, if any?

n/a

@intrand intrand self-assigned this Sep 20, 2022
@intrand intrand requested a review from sudermanjr as a code owner September 20, 2022 17:31
@intrand intrand enabled auto-merge (squash) September 20, 2022 17:31
@intrand intrand requested a review from nungster September 20, 2022 17:32
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@sudermanjr sudermanjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@intrand intrand merged commit 93633d6 into master Sep 20, 2022
@intrand intrand deleted the license branch September 20, 2022 18:34
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.

2 participants