-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable gofumpt, goimports, testifylint linters
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
- Loading branch information
Showing
27 changed files
with
386 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.