|
10 | 10 | name: 'go-build-mod' |
11 | 11 | entry: go-build-mod.sh |
12 | 12 | files: '(\.go$)|(\bgo\.mod$)' |
| 13 | + exclude: '(^|/)vendor/' |
13 | 14 | language: 'script' |
14 | 15 | description: "Run 'cd $(mod_root $FILE); go build -o /dev/null [$ARGS] ./...' for each staged .go file" |
15 | 16 | pass_filenames: true |
|
25 | 26 | name: 'go-build-pkg' |
26 | 27 | entry: go-build-pkg.sh |
27 | 28 | types: [go] |
| 29 | + exclude: '(^|/)vendor/' |
28 | 30 | language: 'script' |
29 | 31 | description: "Run 'go build -o /dev/null [$ARGS] ./$(dirname $FILE)' for each staged .go file" |
30 | 32 | pass_filenames: true |
|
42 | 44 | name: 'go-build-repo-mod' |
43 | 45 | entry: go-build-repo-mod.sh |
44 | 46 | files: '(\.go$)|(\bgo\.mod$)' |
| 47 | + exclude: '(^|/)vendor/' |
45 | 48 | language: 'script' |
46 | 49 | description: "Run 'cd $(mod_root); go build -o /dev/null [$ARGS] ./...' for each module in the repo" |
47 | 50 | pass_filenames: false |
|
56 | 59 | name: 'go-build-repo-pkg' |
57 | 60 | entry: go-build-repo-pkg.sh |
58 | 61 | types: [go] |
| 62 | + exclude: '(^|/)vendor/' |
59 | 63 | language: 'script' |
60 | 64 | description: "Run 'go build -o /dev/null [$ARGS] ./...' in repo root folder" |
61 | 65 | pass_filenames: false |
|
69 | 73 | name: 'go-critic' |
70 | 74 | entry: go-critic.sh |
71 | 75 | types: [go] |
| 76 | + exclude: '(^|/)vendor/' |
72 | 77 | language: 'script' |
73 | 78 | description: "Run 'gocritic check [$ARGS] $FILE' for each staged .go file" |
74 | 79 | pass_filenames: true |
|
84 | 89 | name: 'go-fmt' |
85 | 90 | entry: go-fmt.sh |
86 | 91 | types: [go] |
| 92 | + exclude: '(^|/)vendor/' |
87 | 93 | language: 'script' |
88 | 94 | description: "Run 'gofmt -l -d [$ARGS] $FILE' for each staged .go file" |
89 | 95 | pass_filenames: true |
|
99 | 105 | name: 'go-imports' |
100 | 106 | entry: go-imports.sh |
101 | 107 | types: [go] |
| 108 | + exclude: '(^|/)vendor/' |
102 | 109 | language: 'script' |
103 | 110 | description: "Run 'goimports -l -d [$ARGS] $FILE' for each staged .go file" |
104 | 111 | pass_filenames: true |
|
112 | 119 | name: 'go-lint' |
113 | 120 | entry: go-lint.sh |
114 | 121 | types: [go] |
| 122 | + exclude: '(^|/)vendor/' |
115 | 123 | language: 'script' |
116 | 124 | description: "Run 'golint -set_exit_status [$ARGS] $FILE' for each staged .go file" |
117 | 125 | pass_filenames: true |
|
127 | 135 | name: 'go-returns' |
128 | 136 | entry: go-returns.sh |
129 | 137 | types: [go] |
| 138 | + exclude: '(^|/)vendor/' |
130 | 139 | language: 'script' |
131 | 140 | description: "Run 'goreturns -l -d [$ARGS] $FILE' for each staged .go file" |
132 | 141 | pass_filenames: true |
|
143 | 152 | name: 'go-test-mod' |
144 | 153 | entry: go-test-mod.sh |
145 | 154 | files: '(\.go$)|(\bgo\.mod$)' |
| 155 | + exclude: '(^|/)vendor/' |
146 | 156 | language: 'script' |
147 | 157 | description: "Run 'cd $(mod_root $FILE); go test [$ARGS] ./...' for each staged .go file" |
148 | 158 | pass_filenames: true |
|
158 | 168 | name: 'go-test-pkg' |
159 | 169 | entry: go-test-pkg.sh |
160 | 170 | types: [go] |
| 171 | + exclude: '(^|/)vendor/' |
161 | 172 | language: 'script' |
162 | 173 | description: "Run 'go test [$ARGS] ./$(dirname $FILE)' for each staged .go file" |
163 | 174 | pass_filenames: true |
|
175 | 186 | name: 'go-test-repo-mod' |
176 | 187 | entry: go-test-repo-mod.sh |
177 | 188 | files: '(\.go$)|(\bgo\.mod$)' |
| 189 | + exclude: '(^|/)vendor/' |
178 | 190 | language: 'script' |
179 | 191 | description: "Run 'cd $(mod_root); go test [$ARGS] ./...' for each module in the repo" |
180 | 192 | pass_filenames: false |
|
189 | 201 | name: 'go-test-repo-pkg' |
190 | 202 | entry: go-test-repo-pkg.sh |
191 | 203 | types: [go] |
| 204 | + exclude: '(^|/)vendor/' |
192 | 205 | language: 'script' |
193 | 206 | description: "Run 'go test [$ARGS] ./...' in repo root folder" |
194 | 207 | pass_filenames: false |
|
205 | 218 | name: 'go-vet-mod' |
206 | 219 | entry: go-vet-mod.sh |
207 | 220 | files: '(\.go$)|(\bgo\.mod$)' |
| 221 | + exclude: '(^|/)vendor/' |
208 | 222 | language: 'script' |
209 | 223 | description: "Run 'cd $(mod_root $FILE); go vet [$ARGS] ./...' for each staged .go file" |
210 | 224 | pass_filenames: true |
|
220 | 234 | name: 'go-vet-pkg' |
221 | 235 | entry: go-vet-pkg.sh |
222 | 236 | types: [go] |
| 237 | + exclude: '(^|/)vendor/' |
223 | 238 | language: 'script' |
224 | 239 | description: "Run 'go vet [$ARGS] ./$(dirname $FILE)' for each staged .go file" |
225 | 240 | pass_filenames: true |
|
237 | 252 | name: 'go-vet-repo-mod' |
238 | 253 | entry: go-vet-repo-mod.sh |
239 | 254 | files: '(\.go$)|(\bgo\.mod$)' |
| 255 | + exclude: '(^|/)vendor/' |
240 | 256 | language: 'script' |
241 | 257 | description: "Run 'cd $(mod_root); go vet [$ARGS] ./...' for each module in the repo" |
242 | 258 | pass_filenames: false |
|
251 | 267 | name: 'go-vet-repo-pkg' |
252 | 268 | entry: go-vet-repo-pkg.sh |
253 | 269 | types: [go] |
| 270 | + exclude: '(^|/)vendor/' |
254 | 271 | language: 'script' |
255 | 272 | description: "Run 'go vet [$ARGS] ./...' in repo root folder" |
256 | 273 | pass_filenames: false |
|
266 | 283 | name: 'go-vet' |
267 | 284 | entry: go-vet.sh |
268 | 285 | types: [go] |
| 286 | + exclude: '(^|/)vendor/' |
269 | 287 | language: 'script' |
270 | 288 | description: "Run 'go vet [$ARGS] $FILE' for each staged .go file" |
271 | 289 | pass_filenames: true |
|
282 | 300 | name: 'golangci-lint-mod' |
283 | 301 | entry: golangci-lint-mod.sh |
284 | 302 | files: '(\.go$)|(\bgo\.mod$)' |
| 303 | + exclude: '(^|/)vendor/' |
285 | 304 | language: 'script' |
286 | 305 | description: "Run 'cd $(mod_root $FILE); golangci-lint run [$ARGS] ./...' for each staged .go file" |
287 | 306 | pass_filenames: true |
|
297 | 316 | name: 'golangci-lint-pkg' |
298 | 317 | entry: golangci-lint-pkg.sh |
299 | 318 | types: [go] |
| 319 | + exclude: '(^|/)vendor/' |
300 | 320 | language: 'script' |
301 | 321 | description: "Run 'golangci-lint run [$ARGS] ./$(dirname $FILE)' for each staged .go file" |
302 | 322 | pass_filenames: true |
|
314 | 334 | name: 'golangci-lint-repo-mod' |
315 | 335 | entry: golangci-lint-repo-mod.sh |
316 | 336 | files: '(\.go$)|(\bgo\.mod$)' |
| 337 | + exclude: '(^|/)vendor/' |
317 | 338 | language: 'script' |
318 | 339 | description: "Run 'cd $(mod_root); golangci-lint run [$ARGS] ./...' for each module in the repo" |
319 | 340 | pass_filenames: false |
|
328 | 349 | name: 'golangci-lint-repo-pkg' |
329 | 350 | entry: golangci-lint-repo-pkg.sh |
330 | 351 | types: [go] |
| 352 | + exclude: '(^|/)vendor/' |
331 | 353 | language: 'script' |
332 | 354 | description: "Run 'golangci-lint run [$ARGS] ./...' in repo root folder" |
333 | 355 | pass_filenames: false |
|
343 | 365 | name: 'golangci-lint' |
344 | 366 | entry: golangci-lint.sh |
345 | 367 | types: [go] |
| 368 | + exclude: '(^|/)vendor/' |
346 | 369 | language: 'script' |
347 | 370 | description: "Run 'golangci-lint run [$ARGS] $FILE' for each staged .go file" |
348 | 371 | pass_filenames: true |
0 commit comments