Skip to content

Commit af2ff8d

Browse files
committed
Add license checking to lint
Previously these were only tested in GitHub Actions. Add the same checks to "make lint", to match "Lints". Signed-off-by: Anders F Björklund <[email protected]>
1 parent 56702e0 commit af2ff8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,17 @@ check-generated:
467467
((git diff $$(find . -name '*.pb.desc') | cat) && \
468468
(echo "Please run 'make generate' when making changes to proto files and check-in the generated file changes" && false))
469469

470+
LICENSES = Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib
471+
470472
.PHONY: lint
471473
lint: check-generated
472474
golangci-lint run ./...
473475
yamllint .
474476
ls-lint
475477
find . -name '*.sh' ! -path "./.git/*" | xargs shellcheck
476478
find . -name '*.sh' ! -path "./.git/*" | xargs shfmt -s -d
479+
go-licenses check --include_tests ./... --allowed_licenses=$(LICENSES)
480+
ltag -t ./hack/ltag --check -v
477481

478482
.PHONY: clean
479483
clean:

0 commit comments

Comments
 (0)