mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 11:01:49 +01:00
[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 commit76023319c4
) (cherry picked from commit55eb05b03d
) (cherry picked from commit49c84de3df
) (cherry picked from commite8e26f08a6
) (cherry picked from commit401aa12cac
) (cherry picked from commit4ae8f663ad
) (cherry picked from commit2d87e4953b
) (cherry picked from commite79be7d80e
) (cherry picked from commit65e3673998
) (cherry picked from commit54e5a5dca2
) (cherry picked from commit99e8725e68
) (cherry picked from commitc2048b352f
) (cherry picked from commitad142d18a8
) (cherry picked from commit489d42770e
) (cherry picked from commit2de9069ed4
) (cherry picked from commit782d8ef6df
) (cherry picked from commit2068b26cd9
) (cherry picked from commit1857f062dd
) (cherry picked from commitbeced6a2cc
) (cherry picked from commit538ca28ee8
) (cherry picked from commitcc25e3f35f
)
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
|
.PHONY: lint-go
|
||||||
lint-go:
|
lint-go:
|
||||||
$(GO) run $(GOLANGCI_LINT_PACKAGE) run
|
$(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS)
|
||||||
|
|
||||||
.PHONY: lint-go-fix
|
.PHONY: lint-go-fix
|
||||||
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
|
# workaround step for the lint-go-windows CI task because 'go run' can not
|
||||||
# have distinct GOOS/GOARCH for its build and run steps
|
# have distinct GOOS/GOARCH for its build and run steps
|
||||||
|
|
Loading…
Reference in a new issue