Browse Source

.golangci.yml: enable gofumpt and goimports linters

For imports and more opinionated code formatting.

Closes #9557

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
pull/9649/head
Mateusz Gozdek 3 years ago committed by Julien Pivotto
parent
commit
01c5582216
  1. 6
      .golangci.yml

6
.golangci.yml

@ -7,6 +7,8 @@ run:
linters:
enable:
- depguard
- gofumpt
- goimports
- revive
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"
errcheck:
exclude: scripts/errcheck_excludes.txt
goimports:
local-prefixes: github.com/prometheus/prometheus
gofumpt:
extra-rules: true

Loading…
Cancel
Save