diff options
author | Martin Roth <martinroth@google.com> | 2018-05-26 19:47:07 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-06-02 21:00:22 +0000 |
commit | bdad9a8e72c2f2dedd26cd144785e489fcee6742 (patch) | |
tree | c946bb43b05f6f41b246d3f939e791eb67333b48 | |
parent | b28f466a7bde9d5b928982e6e6f27005966711ad (diff) |
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>
-rwxr-xr-x | util/lint/lint-000-license-headers | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers index 43be380025..cc23f1ae2d 100755 --- a/util/lint/lint-000-license-headers +++ b/util/lint/lint-000-license-headers @@ -19,7 +19,10 @@ # regex list of files and directories to exclude from the search HEADER_EXCLUDED="\ +^src/lib/gnat/|\ ^src/vendorcode/|\ +^util/amdtools/example_input/|\ +^util/cbfstool/lzma/|\ ^util/kconfig/|\ ^util/romcc/tests|\ ^util/romcc/results|\ @@ -30,6 +33,15 @@ Kconfig|\ Changelog|\ TODO|\ EXAMPLE|\ +NEWS|\ +ChangeLog|\ +Dockerfile|\ +\.in$|\ +\.[18]$|\ +\.md$|\ +\.wiki$|\ +\.xxdump$|\ +\.spec$|\ \.txt$|\ \.jpg$|\ \.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 'THE AUTHORS DISCLAIM.*ALL WARRANTIES WITH REGARD TO THIS SOFTWARE' check_for_license 'No license required' +check_for_license 'GNU Lesser General Public' for file in $headerlist; do # Verify the file exists, and has content that requires a header |