github.com/status-im/status-go@v1.1.0/.golangci.yml (about) 1 run: 2 concurrency: 0 3 timeout: 10m 4 issues-exit-code: 1 5 modules-download-mode: vendor 6 tests: true 7 skip-dirs: 8 - static 9 - vendor 10 skip-files: 11 - bindata.go 12 - .*_mock.go 13 - contracts/ 14 - eth-node/crypto/ecies/ # copied 15 - eth-node/keystore/ # copied 16 17 output: 18 format: colored-line-number 19 print-issued-lines: true 20 print-linter-name: true 21 22 linters-settings: 23 errcheck: 24 check-type-assertions: false 25 check-blank: false 26 govet: 27 check-shadowing: false 28 golint: 29 min-confidence: 0.8 30 gofmt: 31 simplify: true 32 goimports: 33 local-prefixes: github.com/ethereum/go-ethereum,github.com/status-im/status-go,github.com/waku-org/go-waku 34 maligned: 35 suggest-new: true 36 dupl: 37 threshold: 50 38 goconst: 39 min-len: 3 40 min-occurrences: 2 41 42 linters: 43 disable-all: true 44 enable: 45 - errcheck 46 - gosec 47 - goimports 48 - govet 49 - ineffassign 50 - megacheck 51 - misspell 52 # You can't disable typecheck, see: 53 # https://github.com/golangci/golangci-lint/blob/master/docs/src/docs/welcome/faq.mdx#why-do-you-have-typecheck-errors 54 - typecheck 55 - unconvert 56 fast: false 57 58 issues: 59 exclude: 60 - "composite literal uses unkeyed fields" # govet 61 - "G304: Potential file inclusion via variable" # gosec 62 - "G104: Errors unhandled." #gosec 63 - "lib._Ctype_char, which can be annoying to use" # golint 64 - "SA1019" # staticcheck 65 exclude-rules: 66 - path: eth-node/keystore/passphrase\.go 67 text: "make it a constant" 68 linters: 69 - goconst 70 - path: protocol/message_handler\.go 71 text: "make it a constant" 72 linters: 73 - goconst 74 - path: protocol/.*_test\.go 75 text: "make it a constant" 76 linters: 77 - goconst