Skip to content

Commit

Permalink
Add license-lint (gopasspw#2335)
Browse files Browse the repository at this point in the history
Fixes gopasspw#2332

Signed-off-by: Dominik Schulz <[email protected]>

Signed-off-by: Dominik Schulz <[email protected]>
  • Loading branch information
dominikschulz authored Sep 10, 2022
1 parent 453e106 commit b5971ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .license-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
unrestricted_licenses:
- Apache-2.0
- MIT
- BSD-3-Clause
- BSD-2-Clause
- 0BSD
reciprocal_licenses:
- MPL-2.0
- MPL-2.0-no-copyleft-exception
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ codequality:

@printf '%s\n' '$(OK)'

@echo -n " LICENSE-LINT "
@which license-lint > /dev/null; if [ $$? -ne 0 ]; then \
$(GO) install istio.io/tools/cmd/license-lint@latest; \
fi
@license-lint --config .license-lint.yml >/dev/null || exit 1

@printf '%s\n' '$(OK)'

gen:
@$(GO) generate ./...

Expand Down

0 comments on commit b5971ea

Please sign in to comment.