Skip to content

Remove some lint deprecation warnings #407

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

Merged
merged 3 commits into from
Oct 16, 2024
Merged

Conversation

ryanslade
Copy link
Contributor

And switch to use the new copyloopvar check for Go > 1.22

And switch to use the new `copyloopvar` check for Go > 1.22
@@ -56,16 +56,13 @@ linters-settings:
- commentFormatting

gofumpt:
lang-version: *goVersion
Copy link
Member

Choose a reason for hiding this comment

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

is this effectively changing the checks? would it be better to update goVersion up in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's something I forgot to update when upgrading to Go 1.23. Just changed it, let's see if all the lints still pass.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@exekias All looks good now

Copy link
Member

Choose a reason for hiding this comment

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

do we need to remove this line now then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed those lines because they were being flagged as deprecated by golangci-lint

@ryanslade ryanslade merged commit 681a3eb into main Oct 16, 2024
52 checks passed
@ryanslade ryanslade deleted the rs/update-lint-config branch October 16, 2024 12:10
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