Skip to content

Commit d550173

Browse files
committed
Add license-check part in Makefile
Signed-off-by: kwanhur <huang_hua2012@163.com>
1 parent b09df63 commit d550173

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ GOGEN := $(GO) generate
3030
GOCLEAN := $(GO) clean
3131
GOFLAGS := -race
3232
STATICCHECK := staticcheck
33+
LICENSEEYE := license-eye
3334

3435
# init arch
3536
ARCH := $(shell getconf LONG_BIT)
@@ -91,6 +92,11 @@ check:
9192
$(GO) get honnef.co/go/tools/cmd/staticcheck
9293
$(STATICCHECK) ./...
9394

95+
# make license-check, check code file's license declearation
96+
license-check:
97+
$(GO) install github.com/apache/skywalking-eyes/cmd/license-eye@latest
98+
$(LICENSEEYE) header check
99+
94100
# make docker
95101
docker:
96102
docker build \

0 commit comments

Comments
 (0)