mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
31 lines
686 B
Makefile
31 lines
686 B
Makefile
all: lint build test
|
|
|
|
build:
|
|
go build ./...
|
|
|
|
install:
|
|
./scripts/make-install.sh
|
|
|
|
lint: fmt vet staticcheck misspell
|
|
|
|
fmt:
|
|
./scripts/gofmt.sh
|
|
|
|
vet:
|
|
go vet ./check ./cmd/... ./download ./handlers ./tools/...
|
|
go vet ./main.go
|
|
|
|
staticcheck:
|
|
@[ -x "$(shell which staticcheck)" ] || go install honnef.co/go/tools/cmd/staticcheck@master
|
|
staticcheck ./...
|
|
|
|
test:
|
|
go test -cover ./...
|
|
|
|
start:
|
|
go run main.go
|
|
|
|
misspell:
|
|
@[ -x "$(shell which misspell)" ] || go install ./vendor/github.com/client9/misspell/cmd/misspell
|
|
find . -name '*.go' -not -path './vendor/*' -not -path './_repos/*' -not -path './download/test_downloads/*' -not -path './check/testdata/*' | xargs misspell -error
|