-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 905 Bytes
/
Makefile
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
unit_test:
go test ./...
race_test:
go test ./... --race
fmt:
gofumpt -l -w .
install-tools:
@echo "Installing devtools"
go install golang.org/x/tools/cmd/goimports@latest
go install mvdan.cc/gofumpt@latest
go install github.com/golangci/golangci-lint/cmd/[email protected]
install-packages:
go mod tidy
check:
golangci-lint run \
--build-tags "${BUILD_TAG}" \
--timeout=20m0s \
--enable=gofmt \
--enable=unconvert \
--enable=unparam \
--enable=asciicheck \
--enable=misspell \
--enable=revive \
--enable=decorder \
--enable=reassign \
--enable=usestdlibvars \
--enable=nilerr \
--enable=gosec \
--enable=exportloopref \
--enable=whitespace \
--enable=goimports \
--enable=gocyclo \
--enable=lll
build-bot:
go build -o build/main cmd/app.go