-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
37 lines (27 loc) · 987 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
GO ?= go
ADDLICENSE ?= addlicense
HORUSEC ?= horusec
# Check lint of entire project or by extension
lint: lint-horusec-vscode
lint-horusec-vscode:
npm run lint
install-horusec-vscode:
npm install
compile-horusec-vscode:
npm run compile
build-horusec-vscode:
npm run package
license:
$(GO) get -u github.com/google/addlicense
@$(ADDLICENSE) -check -f ./copyright.txt $(shell find -regex '.*\.\(go\|js\|ts\|yml\|yaml\|sh\|dockerfile\)')
license-fix:
$(GO) get -u github.com/google/addlicense
@$(ADDLICENSE) -f ./copyright.txt $(shell find -regex '.*\.\(go\|js\|ts\|yml\|yaml\|sh\|dockerfile\)')
security:
ifeq (, $(shell which $(HORUSEC)))
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
$(HORUSEC) start -p="./" -e="true"
else
$(HORUSEC) start -p="./" -e="true"
endif
pipeline: install-horusec-vscode lint-horusec-vscode compile-horusec-vscode build-horusec-vscode security