[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) (cherry picked from commit 49c84de3dff883c89a3c0115ab7e0a06aad7bb45) (cherry picked from commit e8e26f08a6f31fc68797d6e0a927e75565abc350) (cherry picked from commit 401aa12cac3ad50ffa21c5e141d72e1d7cfd45ff) (cherry picked from commit 4ae8f663ad287269e1dc8bee19b3edcf41a431f8) (cherry picked from commit 2d87e4953b93204d2da530315e03bf311cd22e10) (cherry picked from commit e79be7d80e24effa110d4752525ab704ab6b16c0) (cherry picked from commit 65e367399867e13a9565e2553901be60036e27d8) (cherry picked from commit 54e5a5dca264a83ade0cbcf52a5f66660b8a4d86) (cherry picked from commit 99e8725e680bd0b7a297ac163aef0e5fecac2363) (cherry picked from commit c2048b352f955978bd8caa67f606cd0d8431b791) (cherry picked from commit ad142d18a8326c147b076e058cdd2a637f2ef80a) (cherry picked from commit 489d42770e1224b20a0b815be31a13bfe4e03a7f) (cherry picked from commit 2de9069ed409071f423b3c6a4032cdc8dbb2be2b) (cherry picked from commit 782d8ef6df8b02086ab0486ab0cfcc5b62b4d7ce) (cherry picked from commit 2068b26cd93bcec3f99af3bafcb3c7cd6a71ca15) (cherry picked from commit 1857f062dd1423d279a619a2588bc1b41a512f74) (cherry picked from commit beced6a2cca433d6dc4d680b2b241be7de65081f) (cherry picked from commit 538ca28ee88cdbfaa2414d58163d377d1768ce56) (cherry picked from commit cc25e3f35f426688a35cf518205f296377e38f58)
This commit is contained in:
parent
faad9e94c1
commit
5679773afc
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -382,11 +382,11 @@ lint-md: node_modules
|
|||
|
||||
.PHONY: lint-go
|
||||
lint-go:
|
||||
$(GO) run $(GOLANGCI_LINT_PACKAGE) run
|
||||
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS)
|
||||
|
||||
.PHONY: lint-go-fix
|
||||
lint-go-fix:
|
||||
$(GO) run $(GOLANGCI_LINT_PACKAGE) run --fix
|
||||
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS) --fix
|
||||
|
||||
# workaround step for the lint-go-windows CI task because 'go run' can not
|
||||
# have distinct GOOS/GOARCH for its build and run steps
|
||||
|
|
Loading…
Reference in a new issue