Closed atc0005 closed 2 years ago
Rolling back to v1.25.0 didn't change anything.
Until I can figure this out, I might need to bring back the standalone golint command:
golint -set_exit_status $(go list -mod=vendor ./... | grep -v /vendor/)
Opened bug report:
https://github.com/golangci/golangci-lint/issues/1249
For now, I'll add back the golint command until this can be sorted.
As noted in the golangci-lint GH issue and on atc0005/brick#113, the "problem" is that some linting checks are disabled by default due to their high false-positive rate. You have to explicitly re-enable those checks.
atc0005/brick#113 did so for the atc0005/brick
project. Other projects will need similar changes to run the (currently) disabled checks.
Yet another reason to push forward with the use of a custom Docker container for linting my Go projects.
See also https://github.com/atc0005/todo/issues/9#issuecomment-620505235
While working on another project, I used a VSCode instance within a VM that did not have golangci-lint installed, and so defaulted to using
golint
for linting. It caught these issues that golangci-lint didn't report:I substituted the real package names with placeholders, but the rest is untouched.
Here is the entries in the
.golangci.yml
file:This is with golangci-lint v1.28.3.