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:
parent
6297319033
commit
8f148dca69
@ -9,4 +9,4 @@ before_install:
|
||||
|
||||
script:
|
||||
- $HOME/gopath/bin/goveralls -service=travis-ci
|
||||
- gometalinter --deadline=5m ./...
|
||||
- make lint
|
||||
|
2
Makefile
2
Makefile
@ -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 ./...
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user