Unverified Commit 20b74188 authored by Hanzei's avatar Hanzei Committed by GitHub
Browse files

Fix lint (#78)

* Add lint-fix command

* Check if files are linted
parent 652affc2
......@@ -20,7 +20,7 @@ install:
- mv task $HOME/gopath/bin
script:
- task lint
- diff -u <(echo -n) <(task lint)
- task test-coverage
after_script:
......
......@@ -8,12 +8,17 @@ update-deps:
- dep ensure -update
lint:
desc: Runs golint
desc: Checks code style
cmds:
- gofmt -d -s *.go
- go vet .
silent: true
lint-fix:
desc: Fixes code style
cmds:
- gofmt -w -s *.go
test:
desc: Runs go tests
cmds:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment