version: "2" linters: default: none enable: - errcheck - govet - staticcheck - ineffassign - unparam exclusions: # Unchecked Close of read-only files, fmt.Fprint* to the terminal and # os.Remove of temporary files, as in golangci-lint v1. presets: - std-error-handling rules: # Tests may ignore errors of set-up writes and helpers. - path: _test\.go linters: [errcheck, unparam] formatters: enable: - gofmt - goimports settings: goimports: local-prefixes: - g.activething.com/go/DateKeys