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
Validate error if blocks #78
Comments
Thank your for the issue! That was interesting, haven't seen this yet but I guess it's kind of new since So just to clarify, this only happens when I think I'll fix this by checking that if this is enabled, it will only trigger an error if the previous statement is an assign expression because it's only those we're looking to merge, assignments and checks. |
This is now fixed and released under v3.1.0, please give it a try! If you're using $ cd golangci-lint
$ go get -u github.com/bombsimon/wsl/v3@v3.1.0
$ go install ./... |
Actually, I'll leave this open until it's merged to |
Merged in golangci/golangci-lint#1750, will be available in next release. |
Hi, I have the following issue while using the wsl tool
When two "if" blocks are together, I get: "if statements should only be cuddled with assignments"
But if I insert a space between them, i get : "if statements that check an error must be cuddled with the statement that assigned the error"
The text was updated successfully, but these errors were encountered: