File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,10 @@ vet: ## Run go vet on the whole project.
109
109
go vet ./...
110
110
111
111
.PHONY : lint
112
- lint : bin/golangci-lint # # Run linting for the project.
112
+ lint : bin/golangci-lint bin/golint generate-mocks # # Run linting for the project.
113
113
go fmt ./...
114
114
go vet ./...
115
+ golint api/... controllers/... pkg/...
115
116
golangci-lint run -v --timeout 360s ./...
116
117
@ # The below string of commands checks that ginkgo isn't present in the controllers.
117
118
@ (grep ginkgo ${PROJECT_DIR} /controllers/cloudstack* _controller.go && \
@@ -132,11 +133,13 @@ undeploy: bin/kustomize ## Undeploy controller from the K8s cluster specified in
132
133
# #@ Binaries
133
134
134
135
.PHONY : binaries
135
- binaries : bin/controller-gen bin/kustomize bin/ginkgo bin/golangci-lint bin/mockgen bin/kubectl # # Locally install all needed bins.
136
+ binaries : bin/controller-gen bin/kustomize bin/ginkgo bin/golangci-lint bin/golint bin/ mockgen bin/kubectl # # Locally install all needed bins.
136
137
bin/controller-gen : # # Install controller-gen to bin.
137
138
GOBIN=
$(PROJECT_DIR ) /bin go install sigs.k8s.io/controller-tools/cmd/
[email protected]
138
139
bin/golangci-lint : # # Install golangci-lint to bin.
139
140
GOBIN=
$(PROJECT_DIR ) /bin go install github.com/golangci/golangci-lint/cmd/
[email protected]
141
+ bin/golint : # # Install golint to bin.
142
+ GOBIN=$(PROJECT_DIR ) /bin go install golang.org/x/lint/golint
140
143
bin/ginkgo : # # Install ginkgo to bin.
141
144
GOBIN=
$(PROJECT_DIR ) /bin go install github.com/onsi/ginkgo/
[email protected]
142
145
bin/mockgen :
You can’t perform that action at this time.
0 commit comments