1 Star 0 Fork 0

Aberic/proc

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Makefile 1.18 KB
Copy Edit Raw Blame History
Aberic authored 2020-05-06 10:10 +08:00 . mod upgrade
PKGS_WITH_OUT_EXAMPLES := $(shell go list ./... | grep -v 'examples/')
PKGS_WITH_OUT_EXAMPLES_AND_UTILS := $(shell go list ./... | grep -v 'examples/\|utils/')
GO_FILES := $(shell find . -name "*.go" -not -path "./vendor/*" -not -path ".git/*" -print0 | xargs -0)
checkTravis: overalls vet lint misspell staticcheck cyclo const veralls test
checkCircle: overalls vet lint misspell staticcheck cyclo const test
checkLocal: overalls vet lint misspell staticcheck cyclo const test
overalls:
@echo "overalls"
overalls -project=github.com/aberic/proc -covermode=count -ignore='.git,_vendor'
vet:
@echo "vet"
go vet $(PKGS_WITH_OUT_EXAMPLES)
lint:
@echo "golint"
golint -set_exit_status $(PKGS_WITH_OUT_EXAMPLES_AND_UTILS)
misspell:
@echo "misspell"
misspell -source=text -error $(GO_FILES)
staticcheck:
@echo "staticcheck"
staticcheck $(PKGS_WITH_OUT_EXAMPLES)
cyclo:
@echo "gocyclo"
gocyclo -over 50 $(GO_FILES)
# gocyclo -top 10 $(GO_FILES)
const:
@echo "goconst"
goconst $(PKGS_WITH_OUT_EXAMPLES)
veralls:
@echo "goveralls"
goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken $(COVERALLS_TOKEN)
test:
@echo "test"
go test -v -cover $(PKGS_WITH_OUT_EXAMPLES)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/aberic/proc.git
git@gitee.com:aberic/proc.git
aberic
proc
proc
master

Search