We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 your feature request related to a problem? Please describe.
So I found that in our codebase we had loops like:
for i := 0; i < len(someSlice); i++ { ... }
And that now I replace this with:
for i := range len(someSlice) { ... }
But in fact this could be further simplified to:
for i := range someSlice { ... }
Describe the solution you'd like
That this linter also complains if you are doing int range over slice length instead of just range over the slice itself.
Describe alternatives you've considered
Manual find of range len( string in our codebase.
range len(
The text was updated successfully, but these errors were encountered:
range len(b)
Awesome! Thanks!
Sorry, something went wrong.
ckaznocha
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
So I found that in our codebase we had loops like:
And that now I replace this with:
But in fact this could be further simplified to:
Describe the solution you'd like
That this linter also complains if you are doing int range over slice length instead of just range over the slice itself.
Describe alternatives you've considered
Manual find of
range len(
string in our codebase.The text was updated successfully, but these errors were encountered: