From 9459f3728ce6cff9d371a637618efcd5ed591e66 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 15 May 2021 00:28:30 +0100 Subject: [PATCH] Meta: Check that copyright headers are followed by a blank line --- Meta/check-style.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/check-style.sh b/Meta/check-style.sh index 1151bd03f8d..b32a2ff49ce 100755 --- a/Meta/check-style.sh +++ b/Meta/check-style.sh @@ -3,14 +3,14 @@ script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) cd "$script_path/.." || exit 1 -# Ensure copyright headers match this format: +# Ensure copyright headers match this format and are followed by a blank line: # /* # * Copyright (c) YYYY(-YYYY), Whatever # * ... more of these ... # * # * SPDX-License-Identifier: BSD-2-Clause # */ -GOOD_LICENSE_HEADER_PATTERN=$'^/\*\n( \* Copyright \(c\) [0-9]{4}(-[0-9]{4})?, .*\n)+ \*\n \* SPDX-License-Identifier: BSD-2-Clause\n \*/\n' +GOOD_LICENSE_HEADER_PATTERN=$'^/\*\n( \* Copyright \(c\) [0-9]{4}(-[0-9]{4})?, .*\n)+ \*\n \* SPDX-License-Identifier: BSD-2-Clause\n \*/\n\n' BAD_LICENSE_HEADER_ERRORS=() LICENSE_HEADER_CHECK_EXCUDES=(AK/Checked.h AK/Function.h Userland/Libraries/LibC/elf.h)