summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-08-07 17:21:17 -0600
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-08-17 19:44:08 +0000
commit957fde633b6ed1fd698018b1d34c01ebbc6d4178 (patch)
treedb421bb06995a3ac45708dee846478301baab64e
parent6dac0c54cd0b8744800f62abdb42ab97b24c292a (diff)
util/lint: Check files of all sizes for licenses
Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Change-Id: Ib97d009c056b487136f20e5341b31183c65ef761 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66504 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
-rwxr-xr-xutil/lint/lint-000-license-headers6
1 files changed, 2 insertions, 4 deletions
diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers
index b9d93fd77c..9c5c7913cf 100755
--- a/util/lint/lint-000-license-headers
+++ b/util/lint/lint-000-license-headers
@@ -124,10 +124,8 @@ check_for_license 'SPDX-License-Identifier: BSD-4-Clause-UC'
check_for_license 'SPDX-License-Identifier: CC-PDDC'
for file in $headerlist; do
- # Verify the file exists, and has content that requires a header
- # This assumes that a file that has 4 lines or fewer is not notable
- # enough to require a license.
- if [ -f "$file" ] && [ "$(wc -l < "$file")" -gt 4 ]; then
+ # Verify the file actually exists
+ if [ -f "$file" ]; then
echo "$file has no recognized SPDX identifier."
fi
done