diff --git a/.golangci.yml b/.golangci.yml index 3c3bf910..8fc3a4eb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,11 @@ -version: "2" +formatters: + enable: + - gofmt + - goimports + settings: + goimports: + local-prefixes: + - github.com/prometheus/procfs linters: enable: - forbidigo @@ -6,40 +13,24 @@ linters: - misspell - revive - testifylint + exclusions: + generated: strict + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + warn-unused: true settings: forbidigo: forbid: - pattern: ^fmt\.Print.*$ msg: Do not commit print statements. godot: + capital: true exclude: # Ignore "See: URL". - 'See:' - capital: true misspell: locale: US - exclusions: - generated: lax - presets: - - comments - - common-false-positives - - legacy - - std-error-handling - paths: - - third_party$ - - builtin$ - - examples$ -formatters: - enable: - - gofmt - - goimports - settings: - goimports: - local-prefixes: - - github.com/prometheus/procfs - exclusions: - generated: lax - paths: - - third_party$ - - builtin$ - - examples$ +version: "2"