Skip to content

Commit

Permalink
enable gofumpt, goimports, testifylint linters
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
  • Loading branch information
mmorel-35 committed Dec 16, 2023
1 parent f20b239 commit 8e5a7c2
Show file tree
Hide file tree
Showing 28 changed files with 392 additions and 326 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 8e5a7c2

Please sign in to comment.