diff --git a/.golangci.yml b/.golangci.yml index 02bf7fb0..e4332da1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -30,19 +30,11 @@ linters: - common-false-positives - legacy - std-error-handling - paths: - - third_party$ - - builtin$ - - examples$ rules: - linters: - errcheck # Taken from the default exclusions in v1. text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked - - linters: - - govet - # We use many Seek methods that do not follow the usual pattern. - text: "stdmethods: method Seek.* should have signature Seek" - linters: - revive # We have stopped at some point to write doc comments on exported symbols. @@ -51,15 +43,6 @@ linters: - linters: - gocritic text: "appendAssign" - - linters: - - errcheck - path: _test.go - - linters: - - errorlint - path: "tsdb/head_wal.go" - - linters: - - godot - source: "^// ===" warn-unused: true settings: depguard: @@ -180,9 +163,3 @@ formatters: goimports: local-prefixes: - github.com/prometheus/common - exclusions: - generated: lax - paths: - - third_party$ - - builtin$ - - examples$