-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
74 lines (62 loc) · 1.58 KB
/
Copy pathTaskfile.yml
File metadata and controls
74 lines (62 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3"
tasks:
default:
desc: Run the tests
cmds:
- task: test
deps:
desc: Install tooling from the Brewfile
cmds:
- brew bundle
extract:
desc: Extract the local rulebook PDFs to text reference (git-ignored, not distributed)
dir: docs
cmds:
- mkdir -p reference
- |
shopt -s nullglob 2>/dev/null || true
for pdf in pdf/*.pdf; do
out="reference/$(basename "$pdf" .pdf).txt"
pdftotext -layout "$pdf" "$out" && echo "extracted $out"
done
sources:
- pdf/*.pdf
generates:
- reference/*.txt
build:
desc: Build all packages
cmds:
- go build ./...
test:
desc: Run the tests
cmds:
- go test ./...
cover:
desc: Run the tests with a coverage summary
cmds:
- go test -cover ./...
vet:
desc: Vet the code
cmds:
- go vet ./...
fmt:
desc: Format the code (gofumpt + goimports + golines)
cmds:
- golangci-lint fmt
lint:
desc: Lint the code
cmds:
- golangci-lint run
audit:
desc: Report what the globally-disabled linters would flag — non-gating, for periodic review of the blind spots those exceptions create
cmds:
- golangci-lint run --enable-only=exhaustruct,mnd,goconst,varnamelen,gochecknoglobals,paralleltest,err113 --max-issues-per-linter=0 --max-same-issues=0 || true
tidy:
desc: Tidy the module files
cmds:
- go mod tidy
check:
desc: Lint (incl. format + vet) and tests — the pre-commit gate
cmds:
- golangci-lint run
- go test ./...