|
1 | | -linters-settings: |
2 | | - goconst: |
3 | | - ignore-tests: true |
4 | | - ignore-strings: "unix:.*" |
5 | | - goimports: |
6 | | - # Put local imports after 3rd-party packages. |
7 | | - local-prefixes: github.com/oasisprotocol/oasis-core |
8 | | - gosec: |
9 | | - excludes: |
10 | | - # https://github.com/securego/gosec#available-rules |
11 | | - - G402 |
12 | | - - G404 |
13 | | - - G115 # Integer conversion with overflow check; many false positives |
14 | | - govet: |
15 | | - shadow: true |
16 | | - # Enable once suggested fixes are shown: https://github.com/golangci/golangci-lint/issues/2134 |
17 | | - #enable: |
18 | | - # - fieldalignment |
19 | | - depguard: |
20 | | - rules: |
21 | | - main: |
22 | | - files: |
23 | | - - $all |
24 | | - allow: |
25 | | - - $gostd |
26 | | - - github.com/a8m/envsubst |
27 | | - - github.com/btcsuite/btcutil |
28 | | - - github.com/cenkalti/backoff/v4 |
29 | | - - github.com/cometbft/cometbft |
30 | | - - github.com/cosmos/gogoproto/proto |
31 | | - - github.com/dgraph-io/badger/v4 |
32 | | - - github.com/eapache/channels |
33 | | - - github.com/fxamacker/cbor/v2 |
34 | | - - github.com/gammazero/deque |
35 | | - - github.com/go-kit/log |
36 | | - - github.com/goki/go-difflib |
37 | | - - github.com/golang/protobu |
38 | | - - github.com/golang/snappy |
39 | | - - github.com/google/btree |
40 | | - - github.com/hashicorp/go-hclog |
41 | | - - github.com/hashicorp/go-plugin |
42 | | - - github.com/hpcloud/tail |
43 | | - - github.com/ipfs/go-log/v2 |
44 | | - - github.com/libp2p/go-libp2p |
45 | | - - github.com/multiformats/go-multiaddr |
46 | | - - github.com/oasisprotocol |
47 | | - - github.com/olekukonko/tablewriter |
48 | | - - github.com/powerman/rpc-codec |
49 | | - - github.com/prometheus |
50 | | - - github.com/seccomp/libseccomp-golang |
51 | | - - github.com/spf13 |
52 | | - - github.com/stretchr |
53 | | - - github.com/tidwall/btree |
54 | | - - github.com/tyler-smith/go-bip39 |
55 | | - - github.com/mdlayher/vsock |
56 | | - - github.com/nxadm/tail |
57 | | - |
| 1 | +version: "2" |
58 | 2 | linters: |
59 | | - disable-all: true |
| 3 | + default: none |
60 | 4 | enable: |
61 | 5 | - bodyclose |
62 | 6 | - copyloopvar |
63 | 7 | - depguard |
64 | 8 | - errcheck |
65 | 9 | - goconst |
66 | 10 | - gocyclo |
67 | | - - gofumpt |
68 | | - - goimports |
69 | 11 | - goprintffuncname |
70 | 12 | - gosec |
71 | | - - gosimple |
72 | 13 | - govet |
73 | 14 | - ineffassign |
74 | 15 | - misspell |
75 | 16 | - revive |
76 | 17 | - rowserrcheck |
77 | 18 | - staticcheck |
78 | | - - typecheck |
79 | 19 | - unconvert |
80 | 20 | - unused |
81 | | - |
82 | | -run: |
83 | | - |
84 | | -exclude-use-default: false |
85 | | - |
86 | | -issues: |
87 | | - include: |
88 | | - - EXC0014 # un-exclude revive `exported` which warns about incorrect comments on exported items. |
89 | | - exclude: |
90 | | - - context-as-argument # revive |
91 | | - exclude-dirs: |
92 | | - # golang-ci-lint requires that files compile for certain linters |
93 | | - # to run, and Go plugins do not compile unless `-buildmode=plugin` |
94 | | - # is set, which linters do not do. |
95 | | - - oasis-test-runner/scenario/pluginsigner/example_signer_plugin |
| 21 | + settings: |
| 22 | + depguard: |
| 23 | + rules: |
| 24 | + main: |
| 25 | + list-mode: lax |
| 26 | + files: |
| 27 | + - $all |
| 28 | + allow: |
| 29 | + - $gostd |
| 30 | + - github.com/a8m/envsubst |
| 31 | + - github.com/btcsuite/btcutil |
| 32 | + - github.com/cenkalti/backoff/v4 |
| 33 | + - github.com/cometbft/cometbft |
| 34 | + - github.com/cosmos/gogoproto/proto |
| 35 | + - github.com/dgraph-io/badger/v4 |
| 36 | + - github.com/eapache/channels |
| 37 | + - github.com/fxamacker/cbor/v2 |
| 38 | + - github.com/gammazero/deque |
| 39 | + - github.com/go-kit/log |
| 40 | + - github.com/goki/go-difflib |
| 41 | + - github.com/golang/protobu |
| 42 | + - github.com/golang/snappy |
| 43 | + - github.com/google/btree |
| 44 | + - github.com/hashicorp/go-hclog |
| 45 | + - github.com/hashicorp/go-plugin |
| 46 | + - github.com/hpcloud/tail |
| 47 | + - github.com/ipfs/go-log/v2 |
| 48 | + - github.com/libp2p/go-libp2p |
| 49 | + - github.com/multiformats/go-multiaddr |
| 50 | + - github.com/oasisprotocol |
| 51 | + - github.com/olekukonko/tablewriter |
| 52 | + - github.com/powerman/rpc-codec |
| 53 | + - github.com/prometheus |
| 54 | + - github.com/seccomp/libseccomp-golang |
| 55 | + - github.com/spf13 |
| 56 | + - github.com/stretchr |
| 57 | + - github.com/tidwall/btree |
| 58 | + - github.com/tyler-smith/go-bip39 |
| 59 | + - github.com/mdlayher/vsock |
| 60 | + - github.com/nxadm/tail |
| 61 | + goconst: |
| 62 | + ignore-string-values: unix:.* |
| 63 | + gosec: |
| 64 | + excludes: |
| 65 | + - G402 |
| 66 | + - G404 |
| 67 | + - G115 |
| 68 | + revive: |
| 69 | + rules: |
| 70 | + - name: exported |
| 71 | + disabled: true |
| 72 | + staticcheck: |
| 73 | + checks: |
| 74 | + - all |
| 75 | + - -QF1001 |
| 76 | + - -QF1002 |
| 77 | + - -QF1003 |
| 78 | + - -QF1006 |
| 79 | + - -QF1008 |
| 80 | + - -ST1000 |
| 81 | + - -ST1003 |
| 82 | + - -ST1019 |
| 83 | + - -S1000 |
| 84 | + exclusions: |
| 85 | + generated: lax |
| 86 | + presets: |
| 87 | + - common-false-positives |
| 88 | + - legacy |
| 89 | + - std-error-handling |
| 90 | + rules: |
| 91 | + - path: (.+)\.go$ |
| 92 | + text: context-as-argument |
| 93 | + - linters: |
| 94 | + - goconst |
| 95 | + path: (.+)_test\.go |
| 96 | + paths: |
| 97 | + - oasis-test-runner/scenario/pluginsigner/example_signer_plugin |
| 98 | + - third_party$ |
| 99 | + - builtin$ |
| 100 | + - examples$ |
| 101 | +formatters: |
| 102 | + enable: |
| 103 | + - gofumpt |
| 104 | + - goimports |
| 105 | + settings: |
| 106 | + goimports: |
| 107 | + local-prefixes: |
| 108 | + - github.com/oasisprotocol/oasis-core |
| 109 | + exclusions: |
| 110 | + generated: lax |
| 111 | + paths: |
| 112 | + - oasis-test-runner/scenario/pluginsigner/example_signer_plugin |
| 113 | + - third_party$ |
| 114 | + - builtin$ |
| 115 | + - examples$ |
0 commit comments