Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use staticcheck that goes as part of golangci-lint
This one turned a bit more involved. Apparently, per golangci/golangci-lint#2017 staticcheck is split into four (!) linters under golangci-lit. These are: `staticcheck`, `gosimple`, `stylecheck` and `unused`. Using the same name `staticcheck` for one of linters is not confusing at all. Anyway, to get full staiccheck's power, one must enable all four linters in `.golangci.yml`. With that we can throw staticcheck target away from `Makefile`. Verified by omitting `"-ST1000"` in `stylecheck.checks` list and seeing how `make lint` fails with ST1000 findings. Unfortunately, I found no way to see log of each linter when it is executed in golangci-lint context to be able to confirm things more precisely. :-( Looks like golangci-lint simply does not support that.
- Loading branch information