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
// Bad for (idx, _) in bar.enumerated() { } // Good for idx in bar.indices { }
The text was updated successfully, but these errors were encountered:
This rule shouldn't apply to ranges and slices:
for (i, _) in range.enumerated() {}
is not the same to
for i in range.indices {}
Sorry, something went wrong.
Are you reporting a bug or just sharing your thoughts on the matter?
Well, I can't say it is a bug. Probably this case was not considered when this feature was developed.
What I want to say is now this row:
triggers the unused_enumerated warning. Which shouldn't be happen IMHO.
unused_enumerated
Can you please file a new issue, taking care to fill out the template, so that we can understand exactly what you're referring to? Thanks!
No branches or pull requests
The text was updated successfully, but these errors were encountered: