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

Upgrade to golangci-lint v1.60.1 #570

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Conversation

aknuds1
Copy link
Collaborator

@aknuds1 aknuds1 commented Aug 19, 2024

What this PR does:
Upgrade to golangci-lint v1.60.1, in which staticcheck forbids calling printf style functions without a formatting string/arguments.

Which issue(s) this PR fixes:

Checklist

  • Tests updated
  • [NA] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@aknuds1 aknuds1 force-pushed the arve/upgrade-golangci-lint branch from 6a168e7 to 323b590 Compare August 19, 2024 13:58
@aknuds1 aknuds1 marked this pull request as ready for review August 19, 2024 14:22
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 force-pushed the arve/upgrade-golangci-lint branch from 323b590 to 28652f4 Compare August 19, 2024 15:17
@aknuds1 aknuds1 added the chore label Aug 19, 2024
@aknuds1 aknuds1 requested a review from a team August 19, 2024 15:51
Copy link
Contributor

@narqo narqo left a comment

Choose a reason for hiding this comment

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

🔥

@aknuds1 aknuds1 merged commit f96e399 into main Aug 20, 2024
6 checks passed
@aknuds1 aknuds1 deleted the arve/upgrade-golangci-lint branch August 20, 2024 08:13
@@ -316,7 +316,7 @@ func DoUntilQuorumWithoutSuccessfulContextCancellation[T any](ctx context.Contex
ext.Error.Set(cfg.Logger.Span, true)
}

contextTracker.cancelAllContexts(cancellation.NewErrorf(cause))
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't see why the new version is better.

Copy link
Collaborator Author

@aknuds1 aknuds1 Aug 22, 2024

Choose a reason for hiding this comment

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

It's generally because the linter thinks the non-formatting version should be used, if there's no string formatting. Why do you eventually think the linter is wrong about this?

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

Successfully merging this pull request may close these issues.

3 participants