We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4328554 commit 8a21eddCopy full SHA for 8a21edd
Makefile
@@ -69,6 +69,14 @@ code-generator:
69
fmt: ## Run go fmt against code.
70
go fmt ./...
71
72
+.PHONY: fmt-verify
73
+fmt-verify:
74
+ @out=`gofmt -w -l -d $$(find . -name '*.go')`; \
75
+ if [ -n "$$out" ]; then \
76
+ echo "$$out"; \
77
+ exit 1; \
78
+ fi
79
+
80
.PHONY: vet
81
vet: ## Run go vet against code.
82
go vet ./...
@@ -90,6 +98,14 @@ lint: golangci-lint ## Run golangci-lint linter
90
98
lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes
91
99
$(GOLANGCI_LINT) run --fix
92
100
101
+.PHONY: ci-lint
102
+ci-lint: golangci-lint
103
+ $(GOLANGCI_LINT) run --timeout 15m0s
104
105
+.PHONY: verify
106
+verify: vet fmt-verify ci-lint manifests generate
107
+ git --no-pager diff --exit-code config api client-go
108
93
109
##@ Build
94
110
95
111
.PHONY: build
0 commit comments