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

False positive in loops #26

Closed
Antonboom opened this issue Mar 9, 2021 · 2 comments
Closed

False positive in loops #26

Antonboom opened this issue Mar 9, 2021 · 2 comments

Comments

@Antonboom
Copy link

Antonboom commented Mar 9, 2021

Hello!

	var i int
	for res := range results {
		suite.requireEqualResults(expected[i], res)
		i++ // reassigned, but never used afterwards (wastedassign)
	}
@sanposhiho
Copy link
Owner

Hi @Antonboom .
This issue is solved in v0.2.0.

If you use golangci-lint, please wait for this PR to be merged and updated to the new version

Thank you for your report.

@Antonboom
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants