dubbo.apache.org/dubbo-go/v3@v3.1.1/.golangci.yml (about) 1 linters-settings: 2 govet: 3 check-shadowing: true 4 golint: 5 min-confidence: 0 6 gocyclo: 7 min-complexity: 10 8 maligned: 9 suggest-new: true 10 dupl: 11 threshold: 100 12 goconst: 13 min-len: 2 14 min-occurrences: 2 15 depguard: 16 list-type: blacklist 17 packages: 18 # logging is allowed only by logutils.Log, logrus 19 # is allowed to use only in logutils package 20 - github.com/sirupsen/logrus 21 misspell: 22 locale: US 23 lll: 24 line-length: 140 25 goimports: 26 local-prefixes: github.com/golangci/golangci-lint 27 gocritic: 28 enabled-tags: 29 - performance 30 - style 31 - experimental 32 disabled-checks: 33 - wrapperFunc 34 35 linters: 36 disable-all: true 37 enable: 38 - govet 39 - staticcheck 40 - ineffassign 41 - misspell 42 43 run: 44 skip-dirs: 45 - test/testdata_etc 46 - pkg/golinters/goanalysis/(checker|passes) 47 48 issues: 49 exclude-rules: 50 - text: "weak cryptographic primitive" 51 linters: 52 - gosec 53 - linters: 54 - staticcheck 55 text: "SA1019:" 56 57 # golangci.com configuration 58 # https://github.com/golangci/golangci/wiki/Configuration 59 service: 60 golangci-lint-version: 1.15.x # use the fixed version to not introduce new linters unexpectedly 61 prepare: 62 - echo "here I can run custom commands, but no preparation needed for this repo" 63