@@ -106,12 +106,11 @@ INTEG_TEST_COVERPKG := -coverpkg="$(MODULE_ROOT)/client/...,$(MODULE_ROOT)/commo
106
106
# #### Tools #####
107
107
update-checkers :
108
108
@printf $(COLOR ) " Install/update check tools..."
109
- @go install golang.org/x/lint/golint@latest
110
109
@go install golang.org/x/tools/cmd/goimports@latest
111
- @go install honnef.co/go/tools/cmd/staticcheck@v0.3.2
112
- @go install github.com/kisielk/errcheck@v1.6.1
113
110
@go install github.com/googleapis/api-linter/cmd/api-linter@v1.32.3
114
111
@go install github.com/bufbuild/buf/cmd/buf@v1.6.0
112
+ @go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
113
+
115
114
116
115
update-mockgen :
117
116
@printf $(COLOR ) " Install/update mockgen tool..."
@@ -222,27 +221,7 @@ copyright:
222
221
223
222
lint :
224
223
@printf $(COLOR ) " Run linter..."
225
- @golint ./...
226
-
227
- vet :
228
- @printf $(COLOR ) " Run go vet..."
229
- @go vet ./... || true
230
-
231
- goimports-check :
232
- @printf $(COLOR ) " Run goimports checks..."
233
- @GO_IMPORTS_OUTPUT=$$(goimports -l . ) ; if [ -n " $$ {GO_IMPORTS_OUTPUT}" ]; then echo " $$ {GO_IMPORTS_OUTPUT}" && echo " Please run 'make goimports'" && exit 1; fi
234
-
235
- goimports :
236
- @printf $(COLOR ) " Run goimports..."
237
- @goimports -w .
238
-
239
- staticcheck :
240
- @printf $(COLOR ) " Run staticcheck..."
241
- @staticcheck ./...
242
-
243
- errcheck :
244
- @printf $(COLOR ) " Run errcheck..."
245
- @errcheck ./... || true
224
+ @golangci-lint run
246
225
247
226
api-linter :
248
227
@printf $(COLOR ) " Run api-linter..."
@@ -264,7 +243,7 @@ shell-check:
264
243
@printf $(COLOR ) " Run shellcheck for script files..."
265
244
@shellcheck $(ALL_SCRIPTS )
266
245
267
- check : copyright-check goimports-check lint vet staticcheck errcheck
246
+ check : copyright-check
268
247
269
248
# #### Tests #####
270
249
clean-test-results :
0 commit comments