diff --git a/.golangci-lint.yml b/.golangci-lint.yml index 5f2a2d9f..654d05e1 100644 --- a/.golangci-lint.yml +++ b/.golangci-lint.yml @@ -9,6 +9,17 @@ linters-settings: check-shadowing: true golint: min-confidence: 0 + depguard: + rules: + main: + list-mode: lax + allow: + - "github.com/hashicorp/go-metrics/compat" + deny: + - pkg: "github.com/hashicorp/go-metrics" + desc: not allowed, use github.com/hashicorp/go-metrics/compat instead + - pkg: "github.com/armon/go-metrics" + desc: not allowed, use github.com/hashicorp/go-metrics/compat instead linters: disable-all: true @@ -16,6 +27,7 @@ linters: - gofmt #- golint - govet + - depguard #- varcheck #- typecheck #- gosimple