We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b25763 + 8020d11 commit ca1e2a0Copy full SHA for ca1e2a0
1 file changed
common.mk
@@ -76,8 +76,12 @@ scan: $(OSV_SCANNER) ## scan for vulnerabilities
76
77
.PHONY: addlicense
78
addlicense: $(ADDLICENSE) ## Add License headers containing of `license` and `comment` to files matched by `pattern`.
79
- @test -n "$(license)" && test -n "$(comment)" && test -n "$(pattern)" \
80
- git ls-files '$(pattern)' | xargs -r $(ADDLICENSE) -c '$(comment)' -l '$(license)' -s=only
+ @test -n "$(license)" && test -n "$(comment)" && test -n "$(pattern)" && \
+ git ls-files '$(pattern)' | xargs -r $(ADDLICENSE) -c '$(comment)' -l '$(license)' -s=only $(extraargs)
81
+
82
+.PHONY: addlicense-check
83
+addlicense-check:
84
+ $(MAKE) addlicense extraargs='-check'
85
86
# Local dev environment
87
.PHONY: setup-local-cluster
0 commit comments