github.com/arsham/gitrelease@v0.3.2-0.20221207124258-6867180b2c2d/.golangci.yml (about) 1 service: 2 golangci-lint-version: 1.45.x 3 4 linters-settings: 5 funlen: 6 lines: 100 7 statements: 50 8 cyclop: 9 skip-tests: true 10 max-complexity: 30 11 package-average: 5 12 gocyclo: 13 min-complexity: 15 14 gofumpt: 15 lang-version: "1.18" 16 goimports: 17 local-prefixes: github.com/golangci/golangci-lint 18 goconst: 19 min-len: 2 20 min-occurrences: 3 21 gocritic: 22 enabled-tags: 23 - diagnostic 24 - experimental 25 - opinionated 26 - performance 27 - style 28 godot: 29 capital: true 30 gosimple: 31 go: "1.18" 32 checks: ["all"] 33 govet: 34 settings: 35 printf: 36 funcs: 37 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof 38 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf 39 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf 40 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf 41 enable: 42 - assign 43 - atomic 44 - atomicalign 45 - bools 46 - buildtag 47 - cgocall 48 - composites 49 - copylocks 50 - deepequalerrors 51 - errorsas 52 - fieldalignment 53 - findcall 54 - framepointer 55 - httpresponse 56 - ifaceassert 57 - loopclosure 58 - lostcancel 59 - nilfunc 60 - printf 61 - reflectvaluecompare 62 - shift 63 - sigchanyzer 64 - sortslice 65 - stdmethods 66 - stringintconv 67 - structtag 68 - testinggoroutine 69 - tests 70 - unmarshal 71 - unreachable 72 - unsafeptr 73 - unusedresult 74 75 maligned: 76 suggest-new: true 77 misspell: 78 locale: UK 79 staticcheck: 80 go: "1.18" 81 checks: ["all"] 82 stylecheck: 83 go: "1.18" 84 checks: ["all"] 85 unparam: 86 check-exported: true 87 88 issues: 89 # Excluding configuration per-path, per-linter, per-text and per-source 90 exclude-rules: 91 - path: _test\.go 92 linters: 93 - gosec # security check is not important in tests 94 - dupl # we usualy duplicate code in tests 95 - bodyclose 96 - unparam 97 - errcheck 98 - govet 99 fix: true 100 exclude-use-default: false 101 102 run: 103 timeout: 5m 104 skip-dirs: 105 - model 106 - tmp 107 - bin 108 - scripts 109 allow-parallel-runners: true 110 tests: true 111 build-tags: 112 - integration 113 114 linters: 115 enable: 116 - bidichk 117 - bodyclose 118 - cyclop 119 - deadcode 120 - depguard 121 - dogsled 122 - dupl 123 - durationcheck 124 - errcheck 125 - errname 126 - errorlint 127 - exportloopref 128 - forcetypeassert 129 - gocognit 130 - goconst 131 - gocritic 132 - gocyclo 133 - godot 134 - gofmt 135 - gofumpt 136 - goprintffuncname 137 - gosec 138 - gosimple 139 - govet 140 - ineffassign 141 - misspell 142 - nakedret 143 - nestif 144 - nilerr 145 - noctx 146 - prealloc 147 - predeclared 148 - promlinter 149 - revive 150 - rowserrcheck 151 - sqlclosecheck 152 - staticcheck 153 - structcheck 154 - stylecheck 155 - tenv 156 - tparallel 157 - typecheck 158 - unconvert 159 - unparam 160 - unused 161 - varcheck 162 - wastedassign 163 - whitespace