Explorar o código

golangci-lint: enable misspell, tweak configuration

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn %!s(int64=5) %!d(string=hai) anos
pai
achega
f41712c4be
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      hack/validate/golangci-lint.yml

+ 7 - 0
hack/validate/golangci-lint.yml

@@ -8,6 +8,7 @@ linters:
     - gosimple
     - govet
     - ineffassign
+    - misspell
     - unconvert
 
   disable:
@@ -33,6 +34,12 @@ linters-settings:
 
 issues:
   exclude-rules:
+    # Exclude some linters from running on tests files.
+    - path: _test\.go
+      linters:
+        - errcheck
+        - gosec
+
     - text: "G201: SQL string formatting"
       linters:
         - gosec