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

golangci-lint: Update and address linter issues #1322

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

charlieegan3
Copy link
Member

Addresses linter issues found in #1321

Signed-off-by: Charlie Egan <charlie@styra.com>
@@ -773,7 +773,7 @@ func BenchmarkRegalLintingItself(b *testing.B) {

var rep report.Report

for i := 0; i < b.N; i++ {
for range b.N {
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't work in Go 1.22 which is what we target.. but I guess since these are test files, it doesn't matter.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I wonder why golangcilint wasn't able to work that out? perhaps because we have a more recent toolchain version?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, that sounds reasonable, and smart :) If it did this generally, we'd have a lot of places to update I reckon.

@anderseknert anderseknert merged commit d59ef1c into StyraInc:opa1.0 Jan 8, 2025
2 of 5 checks passed
anderseknert pushed a commit that referenced this pull request Jan 8, 2025
Signed-off-by: Charlie Egan <charlie@styra.com>
charlieegan3 added a commit that referenced this pull request Jan 9, 2025
Signed-off-by: Charlie Egan <charlie@styra.com>
anderseknert pushed a commit that referenced this pull request Jan 13, 2025
Signed-off-by: Charlie Egan <charlie@styra.com>
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.

2 participants