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

Adjust golangci-lint linters #1022

Merged
merged 6 commits into from
Nov 14, 2024
Merged

Conversation

tpantelis
Copy link
Contributor

Added new linters (some commented out if not needed) and removed deprecated linters. Also addressed violations reported by new linters (in separate commits).

Related to submariner-io/enhancements#231

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1022/tpantelis/update_linters

Added new linters (some commented out if not needed) and removed
deprecated linters.

Related to submariner-io/enhancements#231

Signed-off-by: Tom Pantelis <[email protected]>
The return error must be checked in ToJSON since the exact type
is unknown (ie any).

Signed-off-by: Tom Pantelis <[email protected]>
Convert to use integer range format.

Signed-off-by: Tom Pantelis <[email protected]>
Most of the unnamed params were unused anyway.

Signed-off-by: Tom Pantelis <[email protected]>
Use simple concatenation instead.

Signed-off-by: Tom Pantelis <[email protected]>
Remove the "nolint" override as "utilruntime.ErrorHandlers" is
excluded in the linter config.

Signed-off-by: Tom Pantelis <[email protected]>
@dfarrell07
Copy link
Member

The new linters drive some nice refactoring, very cool thanks @tpantelis!

@tpantelis tpantelis merged commit 70d8cab into submariner-io:devel Nov 14, 2024
16 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1022/tpantelis/update_linters]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants