mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 04:28:12 +01:00
porting some grep checks from cmss (#17338)
* porting some grep checks from cmss * . * Update validate_files.sh * Update validate_files.sh * Update validate_files.sh * Update validate_files.sh * not now.... * Update validate_files.sh --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Selis
Cameron Lennox
parent
0eb959aa8e
commit
48e3bfec74
@@ -209,6 +209,20 @@ if $grep '\.proc/' $code_x_515 ; then
|
||||
FAILED=1
|
||||
fi;
|
||||
|
||||
#part "var in proc args"
|
||||
#if grep -P '^/[\w/]\S+\(.*(var/|, ?var/.*).*\)' $code_files; then
|
||||
# echo
|
||||
# echo -e "${RED}ERROR: changed files contains proc argument starting with 'var'.${NC}"
|
||||
# FAILED=1
|
||||
#fi;
|
||||
|
||||
part "unmanaged global vars"
|
||||
if grep -P '^/*var/' $code_files; then
|
||||
echo
|
||||
echo -e "${RED}ERROR: Unmanaged global var use detected in code, please use the helpers.${NC}"
|
||||
FAILED=1
|
||||
fi;
|
||||
|
||||
part "ambiguous bitwise or"
|
||||
if grep -P '^(?:[^\/\n]|\/[^\/\n])*(&[ \t]*\w+[ \t]*\|[ \t]*\w+)' $code_files; then
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user