github.com/wtsi-ssg/wrstat@v1.1.4-0.20221008232152-3030622a8cf8/.golangci.yml (about) 1 run: 2 deadline: 4m 3 build-tags: 4 - netgo 5 modules-download-mode: readonly 6 7 linters-settings: 8 dupl: 9 threshold: 100 10 errcheck: 11 check-type-assertions: true 12 check-blank: true 13 exhaustive: 14 default-signifies-exhaustive: true 15 funlen: 16 lines: 30 17 statements: 20 18 gocognit: 19 min-complexity: 9 20 gocyclo: 21 min-complexity: 7 22 gomnd: 23 ignored-functions: 24 - 'strconv.Parse*' 25 govet: 26 check-shadowing: true 27 enable-all: true 28 disable-all: false 29 disable: 30 - fieldalignment 31 lll: 32 line-length: 120 33 misspell: 34 locale: UK 35 nakedret: 36 max-func-lines: 20 37 nestif: 38 min-complexity: 2 39 prealloc: 40 simple: true 41 range-loops: true 42 for-loops: true 43 unparam: 44 check-exported: true 45 unused: 46 check-exported: false 47 whitespace: 48 multi-if: true 49 multi-func: false 50 wsl: 51 allow-cuddle-declarations: false 52 force-err-cuddling: true 53 54 issues: 55 exclude-rules: 56 - path: _test\.go 57 linters: 58 - funlen 59 - maintidx 60 - contextcheck 61 - path: cmd 62 linters: 63 - gochecknoinits 64 - gochecknoglobals 65 - dupl 66 - forbidigo 67 - path: version\.go 68 linters: 69 - forbidigo 70 - path: groupuser\.go 71 linters: 72 - dupl 73 - path: usergroup\.go 74 linters: 75 - dupl 76 max-issues-per-linter: 0 77 max-same-issues: 0 78 new-from-rev: master 79 80 linters: 81 disable-all: true 82 enable: 83 - deadcode 84 - errcheck 85 - gosimple 86 - govet 87 - ineffassign 88 - staticcheck 89 - structcheck 90 - typecheck 91 - unused 92 - varcheck 93 - containedctx 94 - contextcheck 95 - cyclop 96 - dogsled 97 - dupl 98 - durationcheck 99 - errname 100 - errorlint 101 - exportloopref 102 - exhaustive 103 - forbidigo 104 - forcetypeassert 105 - funlen 106 - gci 107 - gochecknoglobals 108 - gochecknoinits 109 - gocognit 110 - goconst 111 - gocritic 112 - gocyclo 113 - godot 114 - godox 115 - goerr113 116 - goimports 117 - gomnd 118 - gosec 119 - importas 120 - lll 121 - maintidx 122 - makezero 123 - misspell 124 - nakedret 125 - nestif 126 - nilerr 127 - nilnil 128 - nlreturn 129 - noctx 130 - nolintlint 131 - prealloc 132 - predeclared 133 - revive 134 - rowserrcheck 135 - stylecheck 136 - tenv 137 - thelper 138 - unconvert 139 - unparam 140 - wastedassign 141 - whitespace 142 - wsl 143 # disable: 144 # - asciicheck 145 # - bidichk 146 # - bodyclose 147 # - decorder 148 # - depguard 149 # - errchkjson 150 # - exhaustivestruct 151 # - gofmt 152 # - gofumpt 153 # - goheader 154 # - gomoddirectives 155 # - gomodguard 156 # - goprintffuncname 157 # - grouper 158 # - ifshort 159 # - interfacer 160 # - ireturn 161 # - paralleltest 162 # - promlinter 163 # - revive 164 # - sqlclosecheck 165 # - tagliatelle 166 # - testpackage 167 # - tparallel 168 # - varnamelen 169 # - wrapcheck