From eeb98335d541ea018efd45dca7d4fff2999b438b Mon Sep 17 00:00:00 2001 From: Itamar Date: Sun, 16 May 2021 18:50:45 +0300 Subject: CppLanguageServer: Put cpp test files in /home/anon/cpp-tests/ This is similar to the LibJS test data that resides in /home/anon/js-tests. It's more convenient than storing the test programs as raw strings in the code. --- Meta/check-style.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Meta/check-style.sh') 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 -- cgit v1.2.3