Skip to content

Commit

Permalink
Merge pull request #1748 from danish9039/fix-linter
Browse files Browse the repository at this point in the history
 🌱 added make lint-fix
  • Loading branch information
metal3-io-bot authored May 28, 2024
2 parents c89b1b2 + 4417ed7 commit c91577a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ $(GOLANGCI_LINT_BIN): $(GOLANGCI_LINT) ## Build a local copy of golangci-lint.

.PHONY: lint
lint: $(GOLANGCI_LINT)
$(GOLANGCI_LINT) run -v ./...
cd apis; $(GOLANGCI_LINT) run -v ./...
cd test; $(GOLANGCI_LINT) run -v ./...
cd pkg/hardwareutils; $(GOLANGCI_LINT) run -v ./...
$(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS) ./...
cd apis; $(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS) ./...
cd test; $(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS) ./...
cd pkg/hardwareutils; $(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS) ./...

.PHONY: lint-fix
lint-fix: $(GOLANGCI_LINT) ## Lint the codebase and run auto-fixers if supported by the linter
GOLANGCI_LINT_EXTRA_ARGS=--fix $(MAKE) lint

.PHONY: manifest-lint
manifest-lint: ## Run manifest validation
Expand Down

0 comments on commit c91577a

Please sign in to comment.