1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-26 23:34:47 +01:00

make lint enables gofmt

This commit is contained in:
Oliver Steele 2017-07-19 21:32:45 -04:00
parent 17c5c9c145
commit 510b0cbfee

View File

@ -14,10 +14,10 @@ clean: ## remove binary files
rm -f ${LIB} ${CMD} rm -f ${LIB} ${CMD}
deps: ## list dependencies deps: ## list dependencies
go list -f '{{join .Deps "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq @go list -f '{{join .Deps "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq
imports: ## list imports imports: ## list imports
go list -f '{{join .Imports "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq @go list -f '{{join .Imports "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq
generate: generate:
go generate ./... go generate ./...
@ -30,7 +30,7 @@ setup: ## install dependencies and development tools
gometalinter --install gometalinter --install
lint: ## lint the package lint: ## lint the package
gometalinter ./... --deadline=5m --exclude expressions/scanner.go --exclude y.go --exclude '.*_string.go' --disable=gotype --disable=interfacer gometalinter ./... --deadline=5m --include=gofmt --exclude expressions/scanner.go --exclude y.go --exclude '.*_string.go' --disable=gotype --disable=interfacer
@echo lint passed @echo lint passed
test: ## test the package test: ## test the package