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

Is this still valid with per-iteration loop variables? #24

Closed
andig opened this issue May 15, 2024 · 2 comments
Closed

Is this still valid with per-iteration loop variables? #24

andig opened this issue May 15, 2024 · 2 comments
Assignees

Comments

@andig
Copy link

andig commented May 15, 2024

If not, might be nice to never fail depending on Go version.

@kyoh86
Copy link
Owner

kyoh86 commented May 16, 2024

You have the option of not using this.
The golangci-lint or go vet has the ability to choose which linter to use.

exportloopref does not verify that the target go source can be built with any version of go.
It only knows what version of go runtime the exportloopref is running.
It may not be the same one.

@kyoh86 kyoh86 closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@kyoh86
Copy link
Owner

kyoh86 commented May 16, 2024

If you want, you can switch this linter with version info in the go.mod.

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

No branches or pull requests

2 participants