From 957fde633b6ed1fd698018b1d34c01ebbc6d4178 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 7 Aug 2022 17:21:17 -0600 Subject: [PATCH] util/lint: Check files of all sizes for licenses Signed-off-by: Martin Roth Change-Id: Ib97d009c056b487136f20e5341b31183c65ef761 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66504 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Marshall Dawson --- util/lint/lint-000-license-headers | 6 ++---- 1 file 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