-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (27 loc) · 1000 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
build:
go mod tidy
go build -ldflags "-s -w" -o dist/ .
run:
go mod tidy
go run main.go
compile:
go mod tidy
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o dist/patchouli-linux-amd64 .
GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o dist/patchouli-macos-amd64 .
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o dist/patchouli-windows-amd64.exe .
loc:
go install github.com/boyter/scc/v3@latest
scc --exclude-dir vendor --exclude-dir public .
check:
go install github.com/client9/misspell/cmd/misspell@latest
misspell -error app
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
gocyclo -over 16 app
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec -quiet --severity high ./...
go install github.com/sonatype-nexus-community/nancy@latest
go list -json -deps ./... | nancy sleuth
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run