1
0
mirror of https://github.com/danog/liquid.git synced 2025-01-22 14:11:25 +01:00

tavis uses makefile lint

This commit is contained in:
Oliver Steele 2017-07-02 09:09:23 -04:00
parent 6297319033
commit 8f148dca69
4 changed files with 4 additions and 4 deletions

View File

@ -9,4 +9,4 @@ before_install:
script:
- $HOME/gopath/bin/goveralls -service=travis-ci
- gometalinter --deadline=5m ./...
- make lint

View File

@ -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 ./...

View File

@ -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

View File

@ -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