Add lint-fix to Makefile target
@@ -224,7 +224,11 @@ clusterawsadm: ## Build clusterawsadm binary.
.PHONY: lint
lint: $(GOLANGCI_LINT) ## Lint codebase
- $(GOLANGCI_LINT) run -v --fast=false
+ $(GOLANGCI_LINT) run -v --fast=false $(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
## --------------------------------------
## Generate
