Skip to content

Pin golangci-lint version to v1.51.2#7113

Merged
brooksn merged 2 commits into
k3s-io:masterfrom
brooksn:v1.26.3-k3s1-pin-golangci-lint-ver
Mar 20, 2023
Merged

Pin golangci-lint version to v1.51.2#7113
brooksn merged 2 commits into
k3s-io:masterfrom
brooksn:v1.26.3-k3s1-pin-golangci-lint-ver

Conversation

@brooksn

@brooksn brooksn commented Mar 20, 2023

Copy link
Copy Markdown

Proposed Changes

The golangci-lint installer downloads the latest GitHub tag. This PR passes a specified tag to the installer.

Types of Changes

Verification

Testing

Linked Issues

#7114
#7115

User-Facing Change

NONE

Further Comments

Since golangci-lint v1.52.0 was released, a lot of warnings from revive started to appear for these rules:

  • unused-parameter
  • redefines-builtin-id
  • superfluous-else
  • empty-block

They don't appear to be false positives, and it's not immediately clear what changed in the linter. An alternate solution is to fix all these violations now, or to add them all to the exclude list.

brooksn added 2 commits March 20, 2023 06:30
Signed-off-by: Brooks Newberry <brooks@newberry.com>
Signed-off-by: Brooks Newberry <brooks@newberry.com>
@brooksn brooksn changed the title Pin golangci-lint version to v1.50.1 Pin golangci-lint version to v1.51.2 Mar 20, 2023
@brooksn brooksn marked this pull request as ready for review March 20, 2023 15:47
@brooksn brooksn requested a review from a team as a code owner March 20, 2023 15:47
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.

3 participants