1 Star 0 Fork 0

huangshaoqi/nilnil

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Taskfile.yml 976 Bytes
一键复制 编辑 原始数据 按行查看 历史
Антон Телышев 提交于 2021-09-14 20:58 . nilnil
# https://taskfile.dev/#/installation
version: '3'
silent: true
tasks:
default:
cmds:
- task: tools:install
- task: tidy
- task: fmt
- task: lint
- task: tests
- task: install
tools:install:
- echo "Install local tools..."
- (which gci > /dev/null) || GO111MODULE=off go install github.com/daixiang0/gci@latest
- (which gofumpt > /dev/null) || GO111MODULE=off go install mvdan.cc/gofumpt@latest
tidy:
cmds:
- echo "Tidy..."
- go mod tidy
fmt:
cmds:
- echo "Fmt..."
- gofumpt -w .
- gci -local github.com/Antonboom/nilnil -w . > /dev/null
lint:
cmds:
- echo "Lint..."
- golangci-lint run --fix ./...
tests:
cmds:
- echo "Tests..."
- go test ./...
tests:coverage:
cmds:
- echo "Tests with coverage..."
- go test -coverprofile=coverage.out ./...
install:
cmds:
- echo "Install..."
- go install ./...
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangshaoqi/nilnil.git
git@gitee.com:huangshaoqi/nilnil.git
huangshaoqi
nilnil
nilnil
master

搜索帮助