util/lint: Update lint-000-license-headers linter

- Add some directories and files to the ignore list
- Add the LGPL as a recognized header.  It's used in some files that
were pulled into coreboot from other sources.

Change-Id: I53423205f1cbf142a294ee5d24e885741a44dfcd
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/26572
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Martin Roth 2018-05-26 19:47:07 -06:00
parent b28f466a7b
commit bdad9a8e72
1 changed files with 13 additions and 0 deletions

View File

@ -19,7 +19,10 @@
# regex list of files and directories to exclude from the search # regex list of files and directories to exclude from the search
HEADER_EXCLUDED="\ HEADER_EXCLUDED="\
^src/lib/gnat/|\
^src/vendorcode/|\ ^src/vendorcode/|\
^util/amdtools/example_input/|\
^util/cbfstool/lzma/|\
^util/kconfig/|\ ^util/kconfig/|\
^util/romcc/tests|\ ^util/romcc/tests|\
^util/romcc/results|\ ^util/romcc/results|\
@ -30,6 +33,15 @@ Kconfig|\
Changelog|\ Changelog|\
TODO|\ TODO|\
EXAMPLE|\ EXAMPLE|\
NEWS|\
ChangeLog|\
Dockerfile|\
\.in$|\
\.[18]$|\
\.md$|\
\.wiki$|\
\.xxdump$|\
\.spec$|\
\.txt$|\ \.txt$|\
\.jpg$|\ \.jpg$|\
\.cksum$|\ \.cksum$|\
@ -93,6 +105,7 @@ check_for_license '"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES'
check_for_license 'assumes any liability or responsibility for the use' check_for_license 'assumes any liability or responsibility for the use'
check_for_license 'THE AUTHORS DISCLAIM.*ALL WARRANTIES WITH REGARD TO THIS SOFTWARE' check_for_license 'THE AUTHORS DISCLAIM.*ALL WARRANTIES WITH REGARD TO THIS SOFTWARE'
check_for_license 'No license required' check_for_license 'No license required'
check_for_license 'GNU Lesser General Public'
for file in $headerlist; do for file in $headerlist; do
# Verify the file exists, and has content that requires a header # Verify the file exists, and has content that requires a header