github.com/Finschia/finschia-sdk@v0.48.1/.golangci.yml (about) 1 run: 2 tests: false 3 # # timeout for analysis, e.g. 30s, 5m, default is 1m 4 # timeout: 5m 5 6 linters: 7 disable-all: false 8 enable: 9 - gofmt 10 - goconst 11 - goimports 12 - golint 13 - gosec 14 - gosimple 15 - govet 16 - ineffassign 17 - misspell 18 - nakedret 19 - prealloc 20 - scopelint 21 - staticcheck 22 - stylecheck 23 - typecheck 24 - unconvert 25 - unused 26 - unparam 27 - misspell 28 disable: 29 - gocritic 30 - maligned 31 - errcheck 32 - interfacer 33 - wsl 34 - nolintlint 35 36 issues: 37 exclude-rules: 38 - text: "Use of weak random number generator" 39 linters: 40 - gosec 41 - text: "ST1003:" 42 linters: 43 - stylecheck 44 # FIXME: Disabled until golangci-lint updates stylecheck with this fix: 45 # https://github.com/dominikh/go-tools/issues/389 46 - text: "ST1016:" 47 linters: 48 - stylecheck 49 - text: "SA1019: codec.LegacyAmino is deprecated" 50 linters: 51 - staticcheck 52 - text: "SA1019: collection." 53 linters: 54 - staticcheck 55 max-issues-per-linter: 10000 56 max-same-issues: 10000 57 58 linters-settings: 59 dogsled: 60 max-blank-identifiers: 3 61 maligned: 62 # print struct with more effective memory layout or not, false by default 63 suggest-new: true 64 nolintlint: 65 allow-unused: false 66 require-explanation: false 67 require-specific: false