Relax lint checks
This commit is contained in:
parent
e51fe472c1
commit
f7bda48e78
2 changed files with 3 additions and 5 deletions
5
Makefile
5
Makefile
|
@ -23,8 +23,7 @@ endif
|
||||||
# base package. It contains the common and backends code
|
# base package. It contains the common and backends code
|
||||||
PKG := "k8s.io/ingress"
|
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")
|
||||||
GO_LIST_FILES=$(shell go list ${PKG}/... | grep -v vendor | grep -v -e "test/e2e" -e "controllers/gce/loadbalancers" -e "controllers/gce/controller")
|
|
||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt:
|
fmt:
|
||||||
|
@ -32,7 +31,7 @@ fmt:
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
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
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
// vim: ft=asciidoc
|
// vim: ft=asciidoc
|
||||||
|
|
||||||
image:https://travis-ci.org/kubernetes/ingress.svg?branch=master["Build Status", link="https://travis-ci.org/kubernetes/ingress"]
|
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://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
|
= Ingress
|
||||||
:toc: macro
|
:toc: macro
|
||||||
|
|
Loading…
Reference in a new issue