|
| 1 | +version: "2" |
| 2 | +output: |
| 3 | + formats: |
| 4 | + text: |
| 5 | + path: stdout |
| 6 | +linters: |
| 7 | + default: none |
| 8 | + enable: |
| 9 | + - asasalint |
| 10 | + - asciicheck |
| 11 | + - bidichk |
| 12 | + - bodyclose |
| 13 | + - cyclop |
| 14 | + - dupl |
| 15 | + - durationcheck |
| 16 | + - errcheck |
| 17 | + - errname |
| 18 | + - errorlint |
| 19 | + - exhaustive |
| 20 | + - forbidigo |
| 21 | + - funlen |
| 22 | + - gocheckcompilerdirectives |
| 23 | + - gochecknoglobals |
| 24 | + - gochecknoinits |
| 25 | + - gocognit |
| 26 | + # - goconst |
| 27 | + - gocritic |
| 28 | + - gocyclo |
| 29 | + - godot |
| 30 | + - gomodguard |
| 31 | + - goprintffuncname |
| 32 | + - gosec |
| 33 | + - govet |
| 34 | + - ineffassign |
| 35 | + - lll |
| 36 | + - loggercheck |
| 37 | + - makezero |
| 38 | + - mnd |
| 39 | + - musttag |
| 40 | + - nakedret |
| 41 | + - nestif |
| 42 | + - nilerr |
| 43 | + - nilnil |
| 44 | + # - noctx |
| 45 | + # - nolintlint |
| 46 | + - nonamedreturns |
| 47 | + - nosprintfhostport |
| 48 | + - predeclared |
| 49 | + - promlinter |
| 50 | + - reassign |
| 51 | + - revive |
| 52 | + - rowserrcheck |
| 53 | + - sqlclosecheck |
| 54 | + # - staticcheck |
| 55 | + - testableexamples |
| 56 | + - testpackage |
| 57 | + - tparallel |
| 58 | + - unconvert |
| 59 | + - unparam |
| 60 | + - unused |
| 61 | + - usestdlibvars |
| 62 | + - wastedassign |
| 63 | + - whitespace |
| 64 | + settings: |
| 65 | + cyclop: |
| 66 | + max-complexity: 30 |
| 67 | + package-average: 10 |
| 68 | + errcheck: |
| 69 | + check-type-assertions: true |
| 70 | + exhaustive: |
| 71 | + check: |
| 72 | + - switch |
| 73 | + - map |
| 74 | + exhaustruct: |
| 75 | + exclude: |
| 76 | + - ^net/http.Client$ |
| 77 | + - ^net/http.Cookie$ |
| 78 | + - ^net/http.Request$ |
| 79 | + - ^net/http.Response$ |
| 80 | + - ^net/http.Server$ |
| 81 | + - ^net/http.Transport$ |
| 82 | + - ^net/url.URL$ |
| 83 | + - ^os/exec.Cmd$ |
| 84 | + - ^reflect.StructField$ |
| 85 | + - ^github.com/Shopify/sarama.Config$ |
| 86 | + - ^github.com/Shopify/sarama.ProducerMessage$ |
| 87 | + - ^github.com/mitchellh/mapstructure.DecoderConfig$ |
| 88 | + - ^github.com/prometheus/client_golang/.+Opts$ |
| 89 | + - ^github.com/spf13/cobra.Command$ |
| 90 | + - ^github.com/spf13/cobra.CompletionOptions$ |
| 91 | + - ^github.com/stretchr/testify/mock.Mock$ |
| 92 | + - ^github.com/testcontainers/testcontainers-go.+Request$ |
| 93 | + - ^github.com/testcontainers/testcontainers-go.FromDockerfile$ |
| 94 | + - ^golang.org/x/tools/go/analysis.Analyzer$ |
| 95 | + - ^google.golang.org/protobuf/.+Options$ |
| 96 | + - ^gopkg.in/yaml.v3.Node$ |
| 97 | + funlen: |
| 98 | + lines: 100 |
| 99 | + statements: 50 |
| 100 | + gocognit: |
| 101 | + min-complexity: 20 |
| 102 | + gocritic: |
| 103 | + settings: |
| 104 | + captLocal: |
| 105 | + paramsOnly: false |
| 106 | + underef: |
| 107 | + skipRecvDeref: false |
| 108 | + gomodguard: |
| 109 | + blocked: |
| 110 | + modules: |
| 111 | + - github.com/golang/protobuf: |
| 112 | + recommendations: |
| 113 | + - google.golang.org/protobuf |
| 114 | + reason: see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules |
| 115 | + - github.com/satori/go.uuid: |
| 116 | + recommendations: |
| 117 | + - github.com/google/uuid |
| 118 | + reason: satori's package is not maintained |
| 119 | + - github.com/gofrs/uuid: |
| 120 | + recommendations: |
| 121 | + - github.com/google/uuid |
| 122 | + reason: gofrs' package is not go module |
| 123 | + govet: |
| 124 | + disable: |
| 125 | + - fieldalignment |
| 126 | + enable-all: true |
| 127 | + settings: |
| 128 | + shadow: |
| 129 | + strict: true |
| 130 | + mnd: |
| 131 | + ignored-functions: |
| 132 | + - os.Chmod |
| 133 | + - os.Mkdir |
| 134 | + - os.MkdirAll |
| 135 | + - os.OpenFile |
| 136 | + - os.WriteFile |
| 137 | + - prometheus.ExponentialBuckets |
| 138 | + - prometheus.ExponentialBucketsRange |
| 139 | + - prometheus.LinearBuckets |
| 140 | + nakedret: |
| 141 | + max-func-lines: 0 |
| 142 | + nolintlint: |
| 143 | + require-explanation: true |
| 144 | + require-specific: true |
| 145 | + allow-no-explanation: |
| 146 | + - funlen |
| 147 | + - gocognit |
| 148 | + - lll |
| 149 | + rowserrcheck: |
| 150 | + packages: |
| 151 | + - github.com/jmoiron/sqlx |
| 152 | + exclusions: |
| 153 | + generated: lax |
| 154 | + presets: |
| 155 | + - comments |
| 156 | + - common-false-positives |
| 157 | + - legacy |
| 158 | + - std-error-handling |
| 159 | + rules: |
| 160 | + - linters: |
| 161 | + - stylecheck |
| 162 | + path: command\.go |
| 163 | + paths: |
| 164 | + - third_party$ |
| 165 | + - '.*_test\.go$' |
| 166 | + - builtin$ |
| 167 | + - examples$ |
| 168 | +issues: |
| 169 | + max-same-issues: 50 |
| 170 | +formatters: |
| 171 | + enable: |
| 172 | + - goimports |
| 173 | + exclusions: |
| 174 | + generated: lax |
| 175 | + paths: |
| 176 | + - third_party$ |
| 177 | + - builtin$ |
| 178 | + - examples$ |
0 commit comments