Bläddra i källkod

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 <github@gone.nl>
Sebastiaan van Stijn 5 år sedan
förälder
incheckning
a06d7f5a3e
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      hack/validate/golangci-lint.yml

+ 5 - 1
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