diff --git a/Makefile b/Makefile index 0098717f8..e9bd192bc 100644 --- a/Makefile +++ b/Makefile @@ -114,16 +114,21 @@ generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." -.PHONY: lint -lint: golangci-bin ## Run configured golangci-lint and pre-commit.sh linters against the code. # golangci-lint has a limitation that it doesn't lint subdirectories if # they are a different module. # see https://github.com/golangci/golangci-lint/issues/828 + +.PHONY: lint +lint: golangci-bin lint-e2e lint-api ## Run configured golangci-lint and pre-commit.sh linters against the code. testbin/golangci-lint run ./... --config=./.golangci.yaml - cd api && ../testbin/golangci-lint run ./... --config=../.golangci.yaml - cd e2e && ../testbin/golangci-lint run ./... --config=../.golangci.yaml hack/pre-commit.sh +lint-e2e: golangci-bin ## Run configured golangci-lint for e2e module + cd e2e && ../testbin/golangci-lint run ./... --config=../.golangci.yaml + +lint-api: golangci-bin ## Run configured golangci-lint for api module + cd api && ../testbin/golangci-lint run ./... --config=../.golangci.yaml + .PHONY: create-rdr-env create-rdr-env: drenv-prereqs ## Create a new rdr environment. ./hack/dev-env.sh create