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
I have the following code which I extracted from a test:
for _, req := range testRequests { failingReq := req // <----- here failingReq.ExpectBody = test.ErrorCode(keppel.ErrTooManyRequests) failingReq.ExpectStatus = http.StatusTooManyRequests failingReq.Check(t, h) s.Clock.StepBy(time.Second) req.Check(t, h) }
req gets copied and modified and both are used. I think the linter should ignore this or at least add an option to ignore it.
The text was updated successfully, but these errors were encountered:
@SuperSandro2000 I apologize for the delayed response. This linter has ignore-alias option. Have you tried it?👀
ignore-alias
cf. https://golangci-lint.run/usage/linters/#copyloopvar
linters: disable-all: true enable: - copyloopvar linters-settings: copyloopvar: ignore-alias: true
Sorry, something went wrong.
No branches or pull requests
I have the following code which I extracted from a test:
req gets copied and modified and both are used. I think the linter should ignore this or at least add an option to ignore it.
The text was updated successfully, but these errors were encountered: