From 74a161aaaf2cd2cf3a6a0c2699bc3cef7e20f2d6 Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Wed, 3 Jun 2026 10:14:20 -0400 Subject: [PATCH] Exclude changelog from grep (#96329) --- tools/ci/check_grep.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ci/check_grep.sh b/tools/ci/check_grep.sh index 19828b1913d..da88e80a98c 100755 --- a/tools/ci/check_grep.sh +++ b/tools/ci/check_grep.sh @@ -19,14 +19,14 @@ if command -v rg >/dev/null 2>&1; then if [ ! rg -P '' >/dev/null 2>&1 ] ; then pcre2_support=0 fi - code_files=( . -g '*.dm' -g '!DMCompiler_linux-x64/**' -g '!tools/ci/od_lints.dm' -g '!tools/CatchUnescapedBrackets/**' ) + code_files=( . -g '*.dm' -g '!DMCompiler_linux-x64/**' -g '!tools/ci/od_lints.dm' -g '!tools/CatchUnescapedBrackets/**' -g '!html/changelogs/**' ) map_files="_maps/**/**.dmm" shuttle_map_files="_maps/shuttles/**.dmm" code_x_515="code/**/!(__byond_version_compat).dm" else pcre2_support=0 grep=grep - code_files=( -r --include='*.dm' --exclude-dir='DMCompiler_linux-x64' --exclude='od_lints.dm' --exclude-dir='CatchUnescapedBrackets' . ) + code_files=( -r --include='*.dm' --exclude-dir='DMCompiler_linux-x64' --exclude='od_lints.dm' --exclude-dir='CatchUnescapedBrackets' --exclude-dir='changelogs' . ) map_files="-r --include=_maps/**/**.dmm" shuttle_map_files="-r --include=_maps/shuttles/**.dmm" code_x_515="-r --include=code/**/!(__byond_version_compat).dm" @@ -268,7 +268,7 @@ if $grep -i 'maintainance|maintainence|maintenence' "${code_files[@]}"; then echo -e "${RED}ERROR: Misspelling(s) of 'maintenance' detected in code, please fix.${NC}"; st=1 fi; -if $grep -i 'securaty|securiy|secuirty' $code_files; then +if $grep -i 'securaty|securiy|secuirty' "${code_files[@]}"; then echo echo -e "${RED}ERROR: Misspelling(s) of 'security' detected in code, please fix.${NC}"; st=1