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>
This commit is contained in:
parent
6dac0c54cd
commit
957fde633b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue