-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 723 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 723 Bytes
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
.PHONY: run test build-raspi-zero
SHELL := bash
run:
source .env && go run ./ --log-pretty --log-level=debug --bot-debug=false
build-raspi-zero:
env \
GOOS=linux \
GOARCH=arm \
GOARM=5 \
CGO_ENABLED=0 \
go build -o telcambot-pi-zero ./
lint:
gofmt -l .; test -z "$$(gofmt -l .)"
find . \( -name '*.c' -or -name '*.h' \) -exec clang-format-10 --style=file --dry-run --Werror {} +
go vet ./...
go run honnef.co/go/tools/cmd/staticcheck@latest -checks=all,-ST1000 ./...
go run github.com/securego/gosec/v2/cmd/gosec@latest ./...
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
check: lint
format:
gofmt -w -s .
find . \( -name '*.c' -or -name '*.h' \) -exec clang-format-10 --style=file -i {} +