From 93afbc5f33cd65f0f5a822b4b11c2cb97debd4da Mon Sep 17 00:00:00 2001 From: Kslr Date: Fri, 4 Sep 2020 13:38:15 +0800 Subject: [PATCH] add golangci config --- .github/linters/.golangci.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/linters/.golangci.yml diff --git a/.github/linters/.golangci.yml b/.github/linters/.golangci.yml new file mode 100644 index 000000000..36504643b --- /dev/null +++ b/.github/linters/.golangci.yml @@ -0,0 +1,46 @@ +run: + modules-download-mode: vendor + skip-dirs: + - generated.* + - external + +linters: + enable: + - bodyclose + - deadcode + - depguard + - dogsled + - dupl + - errcheck + - exhaustive + - funlen + - gochecknoinits + - goconst + - gocritic + - gocyclo + - gofmt + - goimports + - golint + - gomnd + - goprintffuncname + - gosec + - gosimple + - govet + - ineffassign + - interfacer + - lll + - misspell + - nakedret + - noctx + - nolintlint + - rowserrcheck + - scopelint + - staticcheck + - structcheck + - stylecheck + - typecheck + - unconvert + - unparam + - unused + - varcheck + - whitespace