github.com/SUSE/skuba@v1.4.17/.golangci.yml (about) 1 linters-settings: 2 govet: 3 check-shadowing: true 4 golint: 5 min-confidence: 0 6 gocyclo: 7 min-complexity: 15 8 maligned: 9 suggest-new: true 10 dupl: 11 threshold: 100 12 goconst: 13 min-len: 2 14 min-occurrences: 2 15 misspell: 16 locale: US 17 lll: 18 line-length: 140 19 goimports: 20 local-prefixes: github.com/golangci/golangci-lint 21 gocritic: 22 enabled-tags: 23 - diagnostic 24 - experimental 25 - opinionated 26 - performance 27 - style 28 disabled-checks: 29 - wrapperFunc 30 - dupImport # https://github.com/go-critic/go-critic/issues/845 31 - ifElseChain 32 - octalLiteral 33 funlen: 34 lines: 100 35 statements: 50 36 37 linters: 38 # please, do not use `enable-all`: it's deprecated and will be removed soon. 39 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint 40 disable-all: true 41 enable: 42 - bodyclose 43 - deadcode 44 - depguard 45 - dogsled 46 - errcheck 47 - gofmt 48 - goimports 49 - gosimple 50 - ineffassign 51 - misspell 52 - nakedret 53 - staticcheck 54 - structcheck 55 - typecheck 56 - unconvert 57 - varcheck 58 - whitespace 59 60 # TODO: enable these linters 61 # - dupl 62 # - scopelint 63 # - golint 64 # - funlen 65 # - lll 66 # - gosec 67 # - gocritic 68 # - govet 69 # - gochecknoinits 70 # - interfacer 71 # - unparam 72 # - unused 73 # - goconst 74 # - gocyclo 75 # - stylecheck 76 77 run: 78 skip-dirs-use-default: true 79 skip-dirs: 80 - docs 81 - bin 82 - ci