From a06d7f5a3e22f69ca9eccb56cf4e4fa53faa84ff Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 14 Oct 2019 02:15:48 +0200 Subject: [PATCH] golangci-lint: include all enabled linters in config This makes it clearer from the configuration what linters are enabled. Also disables the `gofmt` linter, because it's superseded by the `goimports` linter. Signed-off-by: Sebastiaan van Stijn --- hack/validate/golangci-lint.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/validate/golangci-lint.yml b/hack/validate/golangci-lint.yml index 76a00cec99..e547c09917 100644 --- a/hack/validate/golangci-lint.yml +++ b/hack/validate/golangci-lint.yml @@ -1,7 +1,6 @@ linters: enable: - deadcode - - gofmt - goimports - golint - gosec @@ -9,7 +8,12 @@ linters: - govet - ineffassign - misspell + - staticcheck + - structcheck + - typecheck - unconvert + - unused + - varcheck disable: - errcheck