From c50fef48a75737f396eecb1650592ae91bf5fb2a Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sat, 10 Oct 2020 00:19:09 +0800 Subject: [PATCH] Refine golangci-lint settings (#294) --- .github/linters/.golangci.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/linters/.golangci.yml b/.github/linters/.golangci.yml index 3e5721c3b..9e4dcdf33 100644 --- a/.github/linters/.golangci.yml +++ b/.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