You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @kevincantu, can you please check if the PR #543 fixes the problem?
I've detected the following bug: when the disable annotation was not the first line in the comment block, the annotation was ignored. Example:
// BaseApiURL yields ...//revive:disable-next-line:var-naming <- this annotation was ignoredfunc (sourceSource) BaseApiURL() string {}
The example you provided in the issue is something that should work without this fix, i.e. I was not able to reproduce the bug with the exact code example you provided.
Using macOS and golangci-lint v1.41.1 (a207480, 2021-06-19), I expected this to work, and not give me a linter failure:
But actually I get this error when linting:
To work around, I can use this:
But from how
disable-next-line
is described in the README, I think I've seen a bug.The text was updated successfully, but these errors were encountered: