From 01c55822169a9123367e333dc407edd8a263f75d Mon Sep 17 00:00:00 2001 From: Mateusz Gozdek Date: Fri, 22 Oct 2021 10:27:37 +0200 Subject: [PATCH] .golangci.yml: enable gofumpt and goimports linters For imports and more opinionated code formatting. Closes #9557 Signed-off-by: Mateusz Gozdek --- .golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index bc5d5c8d1..90ba28157 100644 --- a/.golangci.yml +++ b/.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