forked from aquasecurity/defsec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·36 lines (29 loc) · 831 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
.PHONY: test
test:
which gotestsum || go install gotest.tools/gotestsum@latest
go test -race ./...
.PHONY: typos
typos:
which codespell || pip3 install codespell
codespell -S funcs,.terraform,.git --ignore-words .codespellignore -f
.PHONY: fix-typos
fix-typos:
which codespell || pip3 install codespell
codespell -S funcs,.terraform --ignore-words .codespellignore -f -w -i1
.PHONY: quality
quality:
which golangci-lint || go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run --timeout 3m --verbose
.PHONY: update-loader
update-loader:
python3 scripts/update_loader_rules.py
@goimports -w pkg/rules/rules.go
.PHONY: metadata_lint
metadata_lint:
go run ./cmd/lint
.PHONY: generate_missing_docs
generate_missing_docs:
go run ./cmd/avd_generator
.PHONY: id
id:
@go run ./cmd/id