Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix makefile lint targets #2920

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,23 +140,28 @@ yamllint:
@docker run --rm -t -v $(PWD):/data cytopia/yamllint:$(YAMLLINT_VERSION) .

##Run lint for the subfiles
.PHONY: install-golangci-lint
install-golangci-lint:
@go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest

.PHONY: metrics-operator-lint
metrics-operator-lint:
metrics-operator-lint: install-golangci-lint
$(MAKE) -C metrics-operator lint

.PHONY: certmanager-lint
certmanager-lint:
certmanager-lint: install-golangci-lint
$(MAKE) -C keptn-cert-manager lint

.PHONY: operator-lint
operator-lint:
operator-lint: install-golangci-lint
$(MAKE) -C lifecycle-operator lint

.PHONY: scheduler-lint
scheduler-lint:
scheduler-lint: install-golangci-lint
$(MAKE) -C scheduler lint

.PHONY: lint
lint:
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest
metrics-operator-lint certmanager-lint operator-lint scheduler-lint
lint: metrics-operator-lint
lint: certmanager-lint
lint: operator-lint
lint: scheduler-lint
Loading