Skip to content

chore: clean up and sort golangci-lint configuration #782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 21 additions & 30 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
version: "2"
formatters:
enable:
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- github.com/prometheus/common
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- errorlint
- misspell
- perfsprint
- revive
- testifylint
exclusions:
generated: strict
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
warn-unused: true
settings:
perfsprint:
# Optimizes even if it requires an int or uint type cast.
Expand All @@ -25,36 +43,9 @@ linters:
severity: warning
disabled: true
testifylint:
enable-all: true
disable:
- go-require
enable-all: true
formatter:
require-f-funcs: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofumpt
- goimports
settings:
goimports:
local-prefixes:
- github.com/prometheus/common
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
version: "2"
Loading