|
| 1 | +version: "2" |
1 | 2 | run: |
2 | 3 | tests: true |
3 | | - # timeout for analysis, e.g. 30s, 5m, default is 1m |
4 | | - timeout: 5m |
5 | | - |
6 | 4 | linters: |
7 | | - disable-all: true |
| 5 | + default: none |
8 | 6 | enable: |
| 7 | + - copyloopvar |
9 | 8 | - dogsled |
10 | 9 | - errcheck |
11 | | - - copyloopvar |
12 | | - - gci |
13 | 10 | - goconst |
14 | 11 | - gocritic |
15 | | - - gofumpt |
16 | 12 | - gosec |
17 | | - - gosimple |
18 | 13 | - govet |
19 | 14 | - ineffassign |
20 | 15 | - misspell |
21 | 16 | - nakedret |
22 | 17 | - nolintlint |
23 | 18 | - revive |
24 | 19 | - staticcheck |
25 | | - - stylecheck |
26 | | - - typecheck |
27 | 20 | - thelper |
28 | 21 | - unconvert |
29 | 22 | - unparam |
30 | 23 | - unused |
31 | | - |
| 24 | + settings: |
| 25 | + dogsled: |
| 26 | + max-blank-identifiers: 3 |
| 27 | + nolintlint: |
| 28 | + require-explanation: false |
| 29 | + require-specific: false |
| 30 | + allow-unused: false |
| 31 | + revive: |
| 32 | + severity: warning |
| 33 | + rules: |
| 34 | + - name: unused-parameter |
| 35 | + disabled: true |
| 36 | + - name: blank-imports |
| 37 | + - name: context-as-argument |
| 38 | + - name: context-keys-type |
| 39 | + - name: dot-imports |
| 40 | + - name: error-return |
| 41 | + - name: error-strings |
| 42 | + - name: error-naming |
| 43 | + - name: exported |
| 44 | + - name: if-return |
| 45 | + - name: increment-decrement |
| 46 | + - name: var-naming |
| 47 | + - name: var-declaration |
| 48 | + - name: range |
| 49 | + - name: receiver-naming |
| 50 | + - name: time-naming |
| 51 | + - name: unexported-return |
| 52 | + - name: indent-error-flow |
| 53 | + - name: errorf |
| 54 | + - name: empty-block |
| 55 | + - name: superfluous-else |
| 56 | + - name: unreachable-code |
| 57 | + - name: redefines-builtin-id |
| 58 | + exclusions: |
| 59 | + generated: lax |
| 60 | + presets: |
| 61 | + - comments |
| 62 | + - common-false-positives |
| 63 | + - legacy |
| 64 | + - std-error-handling |
| 65 | + rules: |
| 66 | + - linters: |
| 67 | + - gosec |
| 68 | + text: Use of weak random number generator |
| 69 | + - linters: |
| 70 | + - golint |
| 71 | + text: comment on exported var |
| 72 | + - linters: |
| 73 | + - golint |
| 74 | + text: don't use an underscore in package name |
| 75 | + - linters: |
| 76 | + - staticcheck |
| 77 | + text: 'ST1003:' |
| 78 | + - linters: |
| 79 | + - staticcheck |
| 80 | + text: 'ST1016:' |
| 81 | + - linters: |
| 82 | + - staticcheck |
| 83 | + path: migrations |
| 84 | + text: 'SA1019:' |
| 85 | + paths: |
| 86 | + - x/vm/core |
| 87 | + - third_party$ |
| 88 | + - builtin$ |
| 89 | + - examples$ |
32 | 90 | issues: |
33 | | - exclude-rules: |
34 | | - - text: 'Use of weak random number generator' |
35 | | - linters: |
36 | | - - gosec |
37 | | - - text: 'comment on exported var' |
38 | | - linters: |
39 | | - - golint |
40 | | - - text: "don't use an underscore in package name" |
41 | | - linters: |
42 | | - - golint |
43 | | - - text: 'ST1003:' |
44 | | - linters: |
45 | | - - stylecheck |
46 | | - # FIXME: Disabled until golangci-lint updates stylecheck with this fix: |
47 | | - # https://github.com/dominikh/go-tools/issues/389 |
48 | | - - text: 'ST1016:' |
49 | | - linters: |
50 | | - - stylecheck |
51 | | - - path: 'migrations' |
52 | | - text: 'SA1019:' |
53 | | - linters: |
54 | | - - staticcheck |
55 | | - exclude-dirs: |
56 | | - - x/vm/core |
57 | | - |
58 | 91 | max-issues-per-linter: 10000 |
59 | 92 | max-same-issues: 10000 |
60 | | - |
61 | | -linters-settings: |
62 | | - gci: |
63 | | - custom-order: true |
64 | | - sections: |
65 | | - - standard # Standard section: captures all standard packages. |
66 | | - - default # Default section: contains all imports that could not be matched to another section type. |
67 | | - - blank # blank imports |
68 | | - - dot # dot imports |
69 | | - - prefix(github.com/cometbft/cometbft) # comet |
70 | | - - prefix(github.com/cosmos) # cosmos org |
71 | | - - prefix(cosmossdk.io) # new modules |
72 | | - - prefix(github.com/cosmos/cosmos-sdk) # cosmos sdk |
73 | | - - prefix(github.com/CosmWasm/wasmd) # cosmwasm |
74 | | - - prefix(github.com/cosmos/gaia) # Gaia |
75 | | - dogsled: |
76 | | - max-blank-identifiers: 3 |
77 | | - maligned: |
78 | | - # print struct with more effective memory layout or not, false by default |
79 | | - suggest-new: true |
80 | | - nolintlint: |
81 | | - allow-unused: false |
82 | | - allow-leading-space: true |
83 | | - require-explanation: false |
84 | | - require-specific: false |
85 | | - revive: |
86 | | - ignore-generated-header: true |
87 | | - severity: warning |
88 | | - rules: |
89 | | - - name: unused-parameter |
90 | | - disabled: true |
91 | | - - name: blank-imports |
92 | | - - name: context-as-argument |
93 | | - - name: context-keys-type |
94 | | - - name: dot-imports |
95 | | - - name: error-return |
96 | | - - name: error-strings |
97 | | - - name: error-naming |
98 | | - - name: exported |
99 | | - - name: if-return |
100 | | - - name: increment-decrement |
101 | | - - name: var-naming |
102 | | - - name: var-declaration |
103 | | - - name: range |
104 | | - - name: receiver-naming |
105 | | - - name: time-naming |
106 | | - - name: unexported-return |
107 | | - - name: indent-error-flow |
108 | | - - name: errorf |
109 | | - - name: empty-block |
110 | | - - name: superfluous-else |
111 | | - - name: unreachable-code |
112 | | - - name: redefines-builtin-id |
| 93 | +formatters: |
| 94 | + enable: |
| 95 | + - gci |
| 96 | + - gofumpt |
| 97 | + settings: |
| 98 | + gci: |
| 99 | + sections: |
| 100 | + - standard |
| 101 | + - default |
| 102 | + - blank |
| 103 | + - dot |
| 104 | + - prefix(github.com/cometbft/cometbft) |
| 105 | + - prefix(github.com/cosmos) |
| 106 | + - prefix(cosmossdk.io) |
| 107 | + - prefix(github.com/cosmos/cosmos-sdk) |
| 108 | + - prefix(github.com/CosmWasm/wasmd) |
| 109 | + - prefix(github.com/cosmos/gaia) |
| 110 | + custom-order: true |
| 111 | + exclusions: |
| 112 | + generated: lax |
| 113 | + paths: |
| 114 | + - x/vm/core |
| 115 | + - third_party$ |
| 116 | + - builtin$ |
| 117 | + - examples$ |
0 commit comments