diff options
author | Itamar <itamar8910@gmail.com> | 2021-05-16 18:50:45 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-19 23:19:07 +0200 |
commit | eeb98335d541ea018efd45dca7d4fff2999b438b (patch) | |
tree | fb89122b690c2f6ad2daef8a035274cc8c751673 /Meta/check-style.sh | |
parent | 28ed5181425303ec60de58727b8a2addb568f118 (diff) | |
download | serenity-eeb98335d541ea018efd45dca7d4fff2999b438b.zip |
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.
Diffstat (limited to 'Meta/check-style.sh')
-rwxr-xr-x | Meta/check-style.sh | 4 |
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 |