summaryrefslogtreecommitdiff
path: root/Meta/check-style.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/check-style.sh')
-rwxr-xr-xMeta/check-style.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/check-style.sh b/Meta/check-style.sh
index b32a2ff49c..b64c4c8696 100755
--- a/Meta/check-style.sh
+++ b/Meta/check-style.sh
@@ -12,7 +12,7 @@ cd "$script_path/.." || exit 1
# */
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)
+LICENSE_HEADER_CHECK_EXCLUDES=(AK/Checked.h AK/Function.h Userland/Libraries/LibC/elf.h Userland/DevTools/HackStudio/LanguageServers/Cpp/Tests/*)
# We check that "#pragma once" is present
PRAGMA_ONCE_PATTERN='#pragma once'
@@ -28,7 +28,7 @@ LIBM_MATH_H_INCLUDE_ERRORS=()
while IFS= read -r f; do
file_content="$(< "$f")"
- if [[ ! "${LICENSE_HEADER_CHECK_EXCUDES[*]} " =~ $f ]]; then
+ if [[ ! "${LICENSE_HEADER_CHECK_EXCLUDES[*]} " =~ $f ]]; then
if [[ ! "$file_content" =~ $GOOD_LICENSE_HEADER_PATTERN ]]; then
BAD_LICENSE_HEADER_ERRORS+=("$f")
fi