Fix goimports

This commit is contained in:
c-bata 2018-10-25 19:21:47 +09:00
parent 0ad87c6ff6
commit 0385870b84
2 changed files with 2 additions and 2 deletions

@ -19,6 +19,6 @@ install:
script: script:
- go build ./_example/simple-echo/main.go - go build ./_example/simple-echo/main.go
- diff <(goimports -d .) <(echo -n "") - diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(echo -n "")
- make lint - make lint
- make test - make test

@ -10,7 +10,7 @@ setup: ## Setup for required tools.
.PHONY: fmt .PHONY: fmt
fmt: ## Formatting source codes. fmt: ## Formatting source codes.
@goimports -w . @goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*")
.PHONY: lint .PHONY: lint
lint: ## Run golint and go vet. lint: ## Run golint and go vet.