# https://golangci-lint.run/docs/configuration/file/ version = '2' [run] concurrency = 4 tests = true # [linters] # enable-all = true # disable = [ # "containedctx", # "exhaustivestruct", # "exhaustruct", # "gas", # "gochecknoglobals", # "goerr113", # "ireturn", # "thelper", # "varnamelen", # ] # Benchmark and tool code: unchecked Close/Write/Fprintf is fine. [[linters.exclusions.rules]] path = 'benchmarks/' linters = ['errcheck', 'ineffassign'] [[linters.exclusions.rules]] path = '_bench_test\.go$' linters = ['errcheck', 'ineffassign']