github.com/vuuihc/gocedar@v0.1.0/.golangci.yml (about) 1 linters-settings: 2 funlen: 3 lines: 120 4 statements: 80 5 goconst: 6 min-len: 2 7 min-occurrences: 2 8 gocyclo: 9 min-complexity: 20 10 goimports: 11 # local-prefixes: git.code.oa.com 12 govet: 13 check-shadowing: false 14 lll: 15 line-length: 120 16 errcheck: 17 check-type-assertions: true 18 nestif: 19 min-complexity: 5 20 21 linters: 22 disable-all: true 23 enable: 24 - bodyclose 25 - deadcode 26 - funlen 27 - goconst 28 - gocyclo 29 - gofmt 30 - ineffassign 31 - staticcheck 32 - structcheck 33 - typecheck 34 - goimports 35 - gosimple 36 - govet 37 - lll 38 - rowserrcheck 39 - errcheck 40 - unused 41 - varcheck 42 - nestif 43 - sqlclosecheck 44 - bodyclose 45 46 run: 47 skip-dirs: 48 # - test/testdata_etc 49 50 issues: 51 exclude-use-default: false 52 53 service: 54 golangci-lint-version: 1.43.0