chore: pass argument to linter script (#15592)
This commit is contained in:
parent
9a07b7defe
commit
cb30586afa
9
Makefile
9
Makefile
@ -379,9 +379,14 @@ golangci_version=v1.51.2
|
||||
lint:
|
||||
@echo "--> Running linter"
|
||||
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
|
||||
@sh ./scripts/go-lint-all.sh
|
||||
@sh ./scripts/go-lint-all.sh --timeout=15m
|
||||
|
||||
.PHONY: lint
|
||||
lint-fix:
|
||||
@echo "--> Running linter"
|
||||
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
|
||||
@sh ./scripts/go-lint-all.sh --fix
|
||||
|
||||
.PHONY: lint lint-fix
|
||||
|
||||
###############################################################################
|
||||
### Protobuf ###
|
||||
|
||||
@ -7,5 +7,5 @@ export pwd=$(pwd)
|
||||
for modfile in $(find . -name go.mod); do
|
||||
echo "linting $(dirname $modfile)"
|
||||
DIR=$(dirname $modfile)
|
||||
(cd $DIR; golangci-lint run ./... --fix -c $pwd/.golangci.yml)
|
||||
(cd $DIR; golangci-lint run ./... -c $pwd/.golangci.yml $@)
|
||||
done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user