Skip to content

Commit

Permalink
enable gofumpt, goimports, testifylint linters (#551)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 authored Jan 11, 2024
1 parent 256500d commit 21a37ca
Show file tree
Hide file tree
Showing 27 changed files with 386 additions and 318 deletions.
22 changes: 22 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,41 @@
linters:
enable:
- errorlint
- gofumpt
- goimports
- misspell
- revive
- testifylint

issues:
exclude-rules:
- path: _test.go
linters:
- errcheck
max-issues-per-linter: 0
max-same-issues: 0

linters-settings:
goimports:
local-prefixes: github.com/prometheus/common
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true
testifylint:
disable:
- float-compare
- go-require
enable:
- bool-compare
- compares
- empty
- error-is-as
- error-nil
- expected-actual
- len
- require-error
- suite-dont-use-pkg
- suite-extra-assert-call
Loading

0 comments on commit 21a37ca

Please sign in to comment.