From 5d4b6c41a82123a648f70f0e6466425ce4afd5bc Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Wed, 12 Aug 2015 15:22:55 -0600 Subject: [PATCH] circle.yml: verify that golint violations == 0 for some dirs --- circle.yml | 8 ++++---- config.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index 5837a3dca..b3d07c0f9 100644 --- a/circle.yml +++ b/circle.yml @@ -13,11 +13,11 @@ test: # install binaries - go install ./... # Go fmt should pass all files - - "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]" + - "[ `git ls-files | grep '.go$' | xargs gofmt -l | tee /tmp/foo | wc -l` -eq 0 ] || (cat /tmp/foo; exit 1)" - go vet ./... - - golint . - - golint testutil/... - - golint cmd/... + - "[ `golint . | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)" + - "[ `golint testutil/... | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)" + - "[ `golint cmd/... | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)" override: - make test-short post: diff --git a/config.go b/config.go index cba6a9489..de756f917 100644 --- a/config.go +++ b/config.go @@ -51,7 +51,7 @@ func (c *Config) Outputs() map[string]*ast.Table { return c.outputs } -// The name of a tag, and the values on which to filter +// TagFilter is the name of a tag, and the values on which to filter type TagFilter struct { Name string Filter []string