Merge pull request #28 from aledbf/relac-checks

Relax lint checks
This commit is contained in:
Prashanth B 2016-11-25 14:43:42 -08:00 committed by GitHub
commit d1fb96ac10
2 changed files with 3 additions and 5 deletions

View file

@ -23,8 +23,7 @@ endif
# base package. It contains the common and backends code
PKG := "k8s.io/ingress"
# TODO: fix lint errors in gce controller
GO_LIST_FILES=$(shell go list ${PKG}/... | grep -v vendor | grep -v -e "test/e2e" -e "controllers/gce/loadbalancers" -e "controllers/gce/controller")
GO_LIST_FILES=$(shell go list ${PKG}/... | grep -v vendor | grep -v -e "test/e2e")
.PHONY: fmt
fmt:
@ -32,7 +31,7 @@ fmt:
.PHONY: lint
lint:
@go list -f '{{if len .TestGoFiles}}"golint {{.Dir}}/..."{{end}}' ${GO_LIST_FILES} | xargs -L 1 sh -c
@go list -f '{{if len .TestGoFiles}}"golint -min_confidence=0.85 {{.Dir}}/..."{{end}}' ${GO_LIST_FILES} | xargs -L 1 sh -c
.PHONY: test
test:

View file

@ -1,9 +1,8 @@
// vim: ft=asciidoc
image:https://travis-ci.org/kubernetes/ingress.svg?branch=master["Build Status", link="https://travis-ci.org/kubernetes/ingress"]
image:https://coveralls.io/repos/github/kubernetes/ingress/badge.svg?branch=master["Coverage Status", link="https://coveralls.io/github/kubernetes/ingress"]
image:https://goreportcard.com/badge/github.com/kubernetes/ingress)["Go report card", link="https://goreportcard.com/report/github.com/kubernetes/ingress"]
= Ingress
:toc: macro