We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fe32f commit 4192605Copy full SHA for 4192605
Makefile
@@ -27,6 +27,17 @@ clean: ## Clean binary folders
27
test: ## Run unit tests
28
go test ./internal/... -timeout=30s -parallel=4 -race
29
30
+.PHONY: lint-fix
31
+lint-fix: ## Fix Go linter issues
32
+ @echo "==> Fixing linters errors..."
33
+ $(shell go env GOPATH)/bin/fieldalignment -json -fix ./...
34
+ golangci-lint run --fix
35
+
36
+.PHONY: lint
37
+lint: ## Check Go linter issues
38
+ @echo "==> Checking source code against linters..."
39
+ golangci-lint run
40
41
.PHONY: test-update
42
test-update: ## Run unit tests and update the golden files
43
go test ./internal/... -timeout=30s -parallel=4 -race -update
0 commit comments