add extra grep checks (#46632)

* add extra grep checks

* 2manyerrors

* eol is clean
This commit is contained in:
spookydonut
2019-09-27 10:27:39 -07:00
committed by Rob Bailey
parent c66ef971d1
commit b1381ce528
+7
View File
@@ -37,6 +37,13 @@ if grep '^/*var/' code/**/*.dm; then
echo "Unmanaged global var use detected in code, please use the helpers."
st=1
fi;
if grep '(^(?!(.*\n)).*$)' code/**/*.dm; then
echo "No newline at end of file detected"
st=1
fi;
if grep -P '^/[\w/]\S+\(.*(var/|, ?var/.*).*\)' code/**/*.dm; then
echo "changed files contains proc argument starting with 'var'"
fi;
if grep -i 'centcomm' code/**/*.dm; then
echo "Misspelling(s) of CENTCOM detected in code, please remove the extra M(s)."
st=1