Skip to content

Commit

Permalink
tavis uses makefile lint
Browse files Browse the repository at this point in the history
  • Loading branch information
osteele committed Jul 2, 2017
1 parent 6297319 commit 8f148dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -9,4 +9,4 @@ before_install:

script:
- $HOME/gopath/bin/goveralls -service=travis-ci
- gometalinter --deadline=5m ./...
- make lint
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -34,7 +34,7 @@ install-dev-tools: ## install dependencies and development tools
gometalinter --install

lint: ## lint the package
gometalinter ./... --exclude expressions/scanner.go --exclude y.go --exclude '.*_string.go'
gometalinter ./... --deadline=5m --exclude expressions/scanner.go --exclude y.go --exclude '.*_string.go'

test: ## test the package
go test ./...
Expand Down
2 changes: 1 addition & 1 deletion tags/loop.go
Expand Up @@ -32,7 +32,7 @@ func parseLoopExpression(source string) (expressions.Expression, error) {
return expr, nil
}

func loopTagParser(node chunks.ASTControlTag) (func(io.Writer, chunks.RenderContext) error, error) {
func loopTagParser(node chunks.ASTControlTag) (func(io.Writer, chunks.RenderContext) error, error) { // nolint: gocyclo
expr, err := parseLoopExpression(node.Args)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion tags/tags.go
Expand Up @@ -76,7 +76,7 @@ func caseTagParser(node chunks.ASTControlTag) (func(io.Writer, chunks.RenderCont
}, nil
}

func ifTagParser(polarity bool) func(chunks.ASTControlTag) (func(io.Writer, chunks.RenderContext) error, error) {
func ifTagParser(polarity bool) func(chunks.ASTControlTag) (func(io.Writer, chunks.RenderContext) error, error) { // nolint: gocyclo
return func(node chunks.ASTControlTag) (func(io.Writer, chunks.RenderContext) error, error) {
type branchRec struct {
test expressions.Expression
Expand Down

0 comments on commit 8f148dc

Please sign in to comment.