Merge pull request #1791 from aledbf/fix-headers

Fix verification of boilerplate, style and file headers
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-12-04 10:08:14 -03:00 committed by GitHub
commit 2a2d8612c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 297 additions and 18 deletions

View file

@ -143,18 +143,12 @@ build: clean
-ldflags "-s -w -X ${PKG}/version.RELEASE=${TAG} -X ${PKG}/version.COMMIT=${COMMIT} -X ${PKG}/version.REPO=${REPO_INFO}" \
-o ${TEMP_DIR}/rootfs/nginx-ingress-controller ${PKG}/cmd/nginx
.PHONY: fmt
fmt:
@echo "+ $@"
@go list -f '{{if len .TestGoFiles}}"gofmt -s -l {{.Dir}}"{{end}}' $(shell go list ${PKG}/... | grep -v vendor) | xargs -L 1 sh -c
.PHONY: lint
lint:
@echo "+ $@"
@go list -f '{{if len .TestGoFiles}}"golint {{.Dir}}/..."{{end}}' $(shell go list ${PKG}/... | grep -v vendor | grep -v '/test/e2e') | xargs -L 1 sh -c
.PHONY: verify-all
verify-all:
@./hack/verify-all.sh
.PHONY: test
test: fmt lint vet
test:
@echo "+ $@"
@go test -v -race -tags "$(BUILDTAGS) cgo" $(shell go list ${PKG}/... | grep -v vendor | grep -v '/test/e2e')