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

chore: update golangci-lint to v1.49.0 #977

Merged
merged 2 commits into from Sep 23, 2022
Merged

Conversation

aramase
Copy link
Member

@aramase aramase commented Sep 16, 2022

Signed-off-by: Anish Ramasekar anish.ramasekar@gmail.com

Reason for Change:

  • Update golangci-lint to v1.49.0
  • Fix errors from running linters

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

Does this change contain code from or inspired by another project?

  • Yes
  • No

If "Yes," did you notify that project's maintainers and provide attribution?

Special Notes for Reviewers:

@@ -6,7 +6,6 @@ run:
linters:
disable-all: true
enable:
- deadcode
Copy link
Member Author

Choose a reason for hiding this comment

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

WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused. 
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused. 
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused. 

@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2022

Codecov Report

Merging #977 (5525f2d) into master (e9c34ea) will decrease coverage by 0.27%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #977      +/-   ##
==========================================
- Coverage   59.18%   58.91%   -0.28%     
==========================================
  Files          10       10              
  Lines        1061     1066       +5     
==========================================
  Hits          628      628              
- Misses        398      403       +5     
  Partials       35       35              

cmd/main.go Outdated Show resolved Hide resolved
nilekhc
nilekhc previously approved these changes Sep 20, 2022
Copy link
Contributor

@nilekhc nilekhc left a comment

Choose a reason for hiding this comment

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

LGTM! Pending other review comments.

@@ -16,6 +16,10 @@ import (
"k8s.io/klog/v2"
)

const (
readHeaderTimeout = 5 * time.Second
Copy link
Member

Choose a reason for hiding this comment

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

should we move this to utils package so it's shared?

Copy link
Member Author

Choose a reason for hiding this comment

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

If we use constants from utils package, it'll lead to import cycle, that's why I defined them as local constants.

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
@aramase aramase enabled auto-merge (squash) September 23, 2022 17:20
@aramase aramase merged commit de2a52a into master Sep 23, 2022
@aramase aramase deleted the golangci-lint-v1.49.0 branch September 23, 2022 17:41
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

4 participants