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:
Kashargul
2026-03-30 18:26:39 +02:00
committed by GitHub
co-authored by Selis Cameron Lennox
parent 0eb959aa8e
commit 48e3bfec74
+14
View File
@@ -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