|
5 | 5 | allow-parallel-runners: true |
6 | 6 | linters: |
7 | 7 | enable: |
8 | | - - asciicheck |
9 | | - - containedctx |
10 | | - - copyloopvar |
11 | | - - decorder |
12 | | - - dogsled |
13 | | - - errorlint |
14 | | - - goconst |
15 | | - - gocritic |
16 | | - - gocyclo |
17 | | - - godot |
18 | | - - gosec |
19 | | - - importas |
20 | | - - misspell |
21 | | - - nakedret |
22 | | - - prealloc |
23 | | - - predeclared |
24 | | - - revive |
25 | | - - staticcheck |
26 | | - - thelper |
27 | | - - unconvert |
28 | | - - whitespace |
| 8 | + - asciicheck |
| 9 | + - containedctx |
| 10 | + - copyloopvar |
| 11 | + - decorder |
| 12 | + - dogsled |
| 13 | + - errorlint |
| 14 | + - goconst |
| 15 | + - gocritic |
| 16 | + - gocyclo |
| 17 | + - godot |
| 18 | + - gosec |
| 19 | + - importas |
| 20 | + - misspell |
| 21 | + - nakedret |
| 22 | + - prealloc |
| 23 | + - predeclared |
| 24 | + - revive |
| 25 | + - staticcheck |
| 26 | + - thelper |
| 27 | + - unconvert |
| 28 | + - whitespace |
29 | 29 | settings: |
30 | 30 | errcheck: |
31 | 31 | disable-default-exclusions: true |
32 | 32 | check-type-assertions: false |
33 | 33 | check-blank: true |
34 | 34 | exclude-functions: |
35 | | - - io/ioutil.ReadFile |
36 | | - - io.Copy(*bytes.Buffer) |
37 | | - - io.Copy(os.Stdout) |
| 35 | + - io/ioutil.ReadFile |
| 36 | + - io.Copy(*bytes.Buffer) |
| 37 | + - io.Copy(os.Stdout) |
38 | 38 | errorlint: |
39 | 39 | errorf: true |
40 | 40 | asserts: true |
41 | 41 | comparison: true |
42 | 42 | gosec: |
43 | 43 | excludes: |
44 | | - - G115 |
| 44 | + - G115 |
| 45 | + staticcheck: |
| 46 | + checks: |
| 47 | + # Default |
| 48 | + - all |
| 49 | + # Disable check for one at least one comment in a package |
| 50 | + - -ST1000 |
| 51 | + # Disable quickfix checks |
| 52 | + - -QF1001 |
| 53 | + - -QF1008 |
45 | 54 | revive: |
46 | 55 | rules: |
47 | | - - name: blank-imports |
48 | | - - name: context-as-argument |
49 | | - - name: context-keys-type |
50 | | - - name: dot-imports |
51 | | - - name: error-return |
52 | | - - name: error-strings |
53 | | - - name: error-naming |
54 | | - - name: exported |
55 | | - - name: if-return |
56 | | - - name: increment-decrement |
57 | | - - name: var-naming |
58 | | - - name: var-declaration |
59 | | - - name: range |
60 | | - - name: receiver-naming |
61 | | - - name: time-naming |
62 | | - - name: unexported-return |
63 | | - - name: indent-error-flow |
64 | | - - name: errorf |
65 | | - - name: superfluous-else |
66 | | - - name: unreachable-code |
67 | | - - name: redefines-builtin-id |
68 | | - - name: bool-literal-in-expr |
69 | | - - name: constant-logical-expr |
| 56 | + - name: blank-imports |
| 57 | + - name: context-as-argument |
| 58 | + - name: context-keys-type |
| 59 | + - name: dot-imports |
| 60 | + - name: error-return |
| 61 | + - name: error-strings |
| 62 | + - name: error-naming |
| 63 | + - name: exported |
| 64 | + - name: if-return |
| 65 | + - name: increment-decrement |
| 66 | + - name: var-naming |
| 67 | + - name: var-declaration |
| 68 | + - name: range |
| 69 | + - name: receiver-naming |
| 70 | + - name: time-naming |
| 71 | + - name: unexported-return |
| 72 | + - name: indent-error-flow |
| 73 | + - name: errorf |
| 74 | + - name: superfluous-else |
| 75 | + - name: unreachable-code |
| 76 | + - name: redefines-builtin-id |
| 77 | + - name: bool-literal-in-expr |
| 78 | + - name: constant-logical-expr |
70 | 79 | exclusions: |
71 | 80 | generated: lax |
72 | 81 | presets: |
73 | | - - common-false-positives |
74 | | - - legacy |
75 | | - - std-error-handling |
| 82 | + - common-false-positives |
| 83 | + - legacy |
| 84 | + - std-error-handling |
76 | 85 | rules: |
77 | | - - linters: |
78 | | - - goconst |
79 | | - path: _test\.go |
| 86 | + - linters: |
| 87 | + - goconst |
| 88 | + path: _test\.go |
80 | 89 | paths: |
81 | | - - ^bin |
82 | | - - ^cluster-api |
83 | | - - ^data/data |
84 | | - - ^docs |
85 | | - - ^hack |
86 | | - - ^images |
87 | | - - ^scripts |
88 | | - - ^terraform |
89 | | - - ^upi |
90 | | - - ^pkg/asset/manifests/azure/stack/v1beta1 |
91 | | - - third_party$ |
92 | | - - builtin$ |
93 | | - - examples$ |
| 90 | + - ^bin |
| 91 | + - ^cluster-api |
| 92 | + - ^data/data |
| 93 | + - ^docs |
| 94 | + - ^hack |
| 95 | + - ^images |
| 96 | + - ^scripts |
| 97 | + - ^terraform |
| 98 | + - ^upi |
| 99 | + - ^pkg/asset/manifests/azure/stack/v1beta1 |
| 100 | + - third_party$ |
| 101 | + - builtin$ |
| 102 | + - examples$ |
94 | 103 | issues: |
95 | 104 | uniq-by-line: false |
96 | 105 | formatters: |
97 | 106 | enable: |
98 | | - - gofmt |
99 | | - - goimports |
| 107 | + - gofmt |
| 108 | + - goimports |
100 | 109 | settings: |
101 | 110 | gci: |
102 | 111 | sections: |
103 | | - - standard |
104 | | - - default |
105 | | - - prefix(github.com/openshift) |
106 | | - - blank |
| 112 | + - standard |
| 113 | + - default |
| 114 | + - prefix(github.com/openshift) |
| 115 | + - blank |
107 | 116 | custom-order: true |
108 | 117 | gofumpt: |
109 | 118 | module-path: github.com/openshift/installer |
110 | 119 | extra-rules: true |
111 | 120 | goimports: |
112 | 121 | local-prefixes: |
113 | | - - github.com/openshift |
| 122 | + - github.com/openshift |
114 | 123 | exclusions: |
115 | 124 | generated: lax |
116 | 125 | paths: |
117 | | - - ^bin |
118 | | - - ^cluster-api |
119 | | - - ^data/data |
120 | | - - ^docs |
121 | | - - ^hack |
122 | | - - ^images |
123 | | - - ^scripts |
124 | | - - ^terraform |
125 | | - - ^upi |
126 | | - - ^pkg/asset/manifests/azure/stack/v1beta1 |
127 | | - - third_party$ |
128 | | - - builtin$ |
129 | | - - examples$ |
| 126 | + - ^bin |
| 127 | + - ^cluster-api |
| 128 | + - ^data/data |
| 129 | + - ^docs |
| 130 | + - ^hack |
| 131 | + - ^images |
| 132 | + - ^scripts |
| 133 | + - ^terraform |
| 134 | + - ^upi |
| 135 | + - ^pkg/asset/manifests/azure/stack/v1beta1 |
| 136 | + - third_party$ |
| 137 | + - builtin$ |
| 138 | + - examples$ |
0 commit comments