Skip to content
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
40 changes: 15 additions & 25 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: "2"
issues:
max-same-issues: 0

linters:
enable:
- copyloopvar
Expand All @@ -17,24 +16,21 @@ linters:
- usestdlibvars
- wastedassign
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
- govet
- structcheck
- nolintlint
path: _test.go
paths:
- ^.*\.(pb|y)\.go$
- third_party$
- builtin$
- examples$
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
- govet
- nolintlint
- structcheck
path: _test.go
paths:
- ^.*\.(pb|y)\.go$
warn-unused: true
settings:
depguard:
rules:
Expand Down Expand Up @@ -65,11 +61,9 @@ linters:
strconcat: true
revive:
rules:

- name: unused-parameter
severity: warning
disabled: true

formatters:
enable:
- gofmt
Expand All @@ -82,9 +76,5 @@ formatters:
local-prefixes:
- github.com/prometheus/client_golang
exclusions:
generated: lax
paths:
- ^.*\.(pb|y)\.go$
- third_party$
- builtin$
- examples$
Loading