.golangci.yml (view raw)
1version: "2"
2
3linters:
4 enable:
5 - errcheck # checking for unchecked errors, these unchecked errors can be critical bugs in some cases
6 - govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
7 - usetesting # reports uses of functions with replacement inside the testing package
8 - perfsprint # checks that fmt.Sprintf can be replaced with a faster alternative
9 - unused # checks for unused constants, variables, functions and types
10 - gocritic # provides diagnostics that check for bugs, performance and style issues
11 - staticcheck # is a go vet on steroids, applying a ton of static analysis checks
12 - godoclint # checks Golang's documentation practice
13 - errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
14 - recvcheck # checks for receiver type consistency
15 - unparam # reports unused function parameters
16 - usestdlibvars # detects the possibility to use variables/constants from the Go standard library