Skip to content

Commit

Permalink
make lint enables gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
osteele committed Jul 20, 2017
1 parent 17c5c9c commit 510b0cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ clean: ## remove binary files
rm -f ${LIB} ${CMD}

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
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:
go generate ./...
Expand All @@ -30,7 +30,7 @@ setup: ## install dependencies and development tools
gometalinter --install

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

test: ## test the package
Expand Down

0 comments on commit 510b0cb

Please sign in to comment.