mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
Makefile: add some convenience targets
Tiny wrappers to quickly do things needed. Some of them are not that simple to type into the CLI manually every time.
This commit is contained in:
parent
450063de7d
commit
8de080f6ec
2 changed files with 14 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -40,3 +40,7 @@ blockchains/
|
|||
# patch
|
||||
*.orig
|
||||
*.rej
|
||||
|
||||
# Coverage
|
||||
coverage.txt
|
||||
coverage.html
|
||||
|
|
10
Makefile
10
Makefile
|
@ -60,3 +60,13 @@ test:
|
|||
|
||||
vet:
|
||||
@go vet ./...
|
||||
|
||||
lint:
|
||||
@go list ./... | xargs -L1 golint -set_exit_status
|
||||
|
||||
fmt:
|
||||
@gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/")
|
||||
|
||||
cover:
|
||||
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
|
||||
@go tool cover -html=coverage.txt -o coverage.html
|
||||
|
|
Loading…
Reference in a new issue