mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
add extra grep checks (#46632)
* add extra grep checks * 2manyerrors * eol is clean
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user