From e1fc2bc35c80f0a5d3f6258232fa244e43ca7884 Mon Sep 17 00:00:00 2001 From: Anton Ovchinnikov Date: Thu, 21 Dec 2023 10:43:34 +0100 Subject: [PATCH] Add another make target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8129af9..aad2027 100644 --- a/Makefile +++ b/Makefile @@ -57,5 +57,9 @@ fmt: ## Run "go fmt" .PHONY: fmt lint: ## Lint (using "golangci-lint") - golangci-lint run -v + golangci-lint run -v $(ARGS) .PHONY: lint + +lint-fix: ARGS=--fix +lint-fix: lint ### Lint and apply fixes (when applicable) +.PHONY: lint-fix