Run staticcheck as a standalone binary rather than as a library via golangci-lint. From the golangci-lint help out, > staticcheck (megacheck): It's a set of rules from staticcheck. It's not the same thing as the staticcheck binary. The author of staticcheck doesn't support or approve the use of staticcheck as a library inside golangci-lint. We decided to disable ST1000 which warns about incorrect or missing package comments. For SA4011, I chose to change the semantics[1] of the for loop rather than ignoring the SA4011 lint for that line. Fixes https://github.com/letsencrypt/boulder/issues/6988 1. https://go.dev/ref/spec#Continue_statements |
||
---|---|---|
.. | ||
mailer.go | ||
mailer_test.go |