Skip to content

Commit 49c84de

Browse files
committed
[TESTS] add GOLANGCI_LINT_ARGS to control golangci calls
It is for instance useful with: GOLANGCI_LINT_ARGS="--concurrency $(expr $(nproc) / 2)" make lint-backend on a laptop where overcommitting the CPU degrades the UI performances. (cherry picked from commit 76023319c4275645b9c8c3bd896c1e60e1d57ae7) (cherry picked from commit 55eb05b03db15355745af83e612406baccc2b126)
1 parent 6e568c7 commit 49c84de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,11 @@ lint-md: node_modules
380380

381381
.PHONY: lint-go
382382
lint-go:
383-
$(GO) run $(GOLANGCI_LINT_PACKAGE) run
383+
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS)
384384

385385
.PHONY: lint-go-fix
386386
lint-go-fix:
387-
$(GO) run $(GOLANGCI_LINT_PACKAGE) run --fix
387+
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS) --fix
388388

389389
# workaround step for the lint-go-windows CI task because 'go run' can not
390390
# have distinct GOOS/GOARCH for its build and run steps

0 commit comments

Comments
 (0)