Debian Codegraph @

Makefile

raw
1 .PHONY: test
2 test:
3 go test ./...
4
5 .PHONY: lint
6 lint: check_license
7
8 .PHONY: check_license
9 check_license:
10 @echo ">> checking license header"
11 @licRes=$$(for file in $$(find . -type f -iname '*.go' ! -path './vendor/*') ; do \
12 awk 'NR<=3' $$file | grep -Eq "(Copyright [0-9]+ The GoSNMP Authors|generated|GENERATED)" || echo $$file; \
13 done); \
14 if [ -n "$${licRes}" ]; then \
15 echo "license header checking failed:"; echo "$${licRes}"; \
16 exit 1; \
17 fi