Browse Source

Refine golangci-lint settings (#294)

Loyalsoldier 5 years ago
parent
commit
c50fef48a7
1 changed files with 2 additions and 10 deletions
  1. 2 10
      .github/linters/.golangci.yml

+ 2 - 10
.github/linters/.golangci.yml

@@ -5,28 +5,19 @@ run:
 
 issues:
   new: true
-  exclude-rules:
-    - path: _test\.go
-      linters:
-        - errcheck
-        - gosec
 
 linters:
   enable:
     - bodyclose
     - depguard
-    - errcheck
-    - exhaustive
     - gocritic
     - gofmt
     - goimports
     - golint
     - goprintffuncname
-    - gosec
     - gosimple
     - govet
     - ineffassign
-    - interfacer
     - misspell
     - nakedret
     - noctx
@@ -39,8 +30,9 @@ linters:
     - typecheck
     - unconvert
     - unparam
-    - unused
     - varcheck
     - whitespace
   disable:
     - deadcode
+    - errcheck
+    - unused