mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
.golangci.yml: enable gofumpt and goimports linters
For imports and more opinionated code formatting. Closes #9557 Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
This commit is contained in:
parent
ce65883588
commit
01c5582216
|
@ -7,6 +7,8 @@ run:
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- depguard
|
- depguard
|
||||||
|
- gofumpt
|
||||||
|
- goimports
|
||||||
- revive
|
- revive
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
|
@ -28,3 +30,7 @@ linters-settings:
|
||||||
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
|
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
|
||||||
errcheck:
|
errcheck:
|
||||||
exclude: scripts/errcheck_excludes.txt
|
exclude: scripts/errcheck_excludes.txt
|
||||||
|
goimports:
|
||||||
|
local-prefixes: github.com/prometheus/prometheus
|
||||||
|
gofumpt:
|
||||||
|
extra-rules: true
|
||||||
|
|
Loading…
Reference in a new issue