Exclude changelog from grep (#96329)

This commit is contained in:
John Willard
2026-06-03 10:14:20 -04:00
committed by GitHub
parent 413b881f9e
commit 74a161aaaf
+3 -3
View File
@@ -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