File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,14 @@ code-generator:
69
69
fmt : # # Run go fmt against code.
70
70
go fmt ./...
71
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
+
72
80
.PHONY : vet
73
81
vet : # # Run go vet against code.
74
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
You can’t perform that action at this time.
0 commit comments