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

Bump golangci-lint to v1.53.2 #1268

Merged
merged 5 commits into from
Jun 27, 2023
Merged

Conversation

skitt
Copy link
Member

@skitt skitt commented Jun 14, 2023

Newer versions of depguard, as used in golangci-lint 1.53.0 and later,
deny imports by default. As a result, depguard should only be enabled
if it's going to be used, which isn't the case currently in Submariner
projects.

Signed-off-by: Stephen Kitt <[email protected]>
This adds
- gosmopolitan
- mirror
- tagalign
- zerologlint

These will be enabled as appropriate in later PRs.

It also migrates to depguard v2, requiring configuration updates for
projects using it.

Signed-off-by: Stephen Kitt <[email protected]>
@submariner-bot
Copy link

🤖 Created branch: z_pr1268/skitt/golang-ci-lint-1.53.2

This sorts the list of enabled linters and removes commented entries
for deprecated and obsolete linters.

Signed-off-by: Stephen Kitt <[email protected]>
@skitt skitt added the lint-projects Lint consuming projects label Jun 16, 2023
@skitt
Copy link
Member Author

skitt commented Jun 16, 2023

The admiral linting error is fixed by submariner-io/admiral#657 which can go in after this.

@skitt skitt merged commit f8aa769 into submariner-io:devel Jun 27, 2023
9 of 10 checks passed
@submariner-bot
Copy link

🤖 Closed branches: [z_pr1268/skitt/golang-ci-lint-1.53.2]

@skitt skitt deleted the golang-ci-lint-1.53.2 branch June 27, 2023 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lint-projects Lint consuming projects
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants