Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update golangci-lint to latest version & tweaks
The latest golangci-lint version comes with two new detected issues, both of which we choose to silence here: 1) staticcheck: Deprecation of (crypto/x509).CertPool.Subjects(): This is still useful to us in the tests and there seems to be no good alternative (we use it merely to count the number of certs). 2) gosec: Potential integer overflow: This is a potentially useful check, but I didn't want to address this as part of this PR. https://github.com/ccoVeille/go-safecast might be useful for this (in fact it looks like it was inspired by the recent addition of this gosec rule). Additionally, change the Makefile to tell golangci-lint to emit all lints, as opposed to imposing its default limits. Those limits could actually be misleading, as it could e.g. lead to someone disabling lints without having seen all the reported issues. Signed-off-by: Carlo Teubner <[email protected]>
- Loading branch information