Fix goimports
This commit is contained in:
parent
0ad87c6ff6
commit
0385870b84
@ -19,6 +19,6 @@ install:
|
||||
|
||||
script:
|
||||
- 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 test
|
||||
|
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ setup: ## Setup for required tools.
|
||||
|
||||
.PHONY: fmt
|
||||
fmt: ## Formatting source codes.
|
||||
@goimports -w .
|
||||
@goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*")
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Run golint and go vet.
|
||||
|
Loading…
Reference in New Issue
Block a user