mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
Forgot to specify files to check in check grep (#72277)
This commit is contained in:
@@ -97,10 +97,11 @@ if $grep '^\t+ [^ *]' $code_files; then
|
||||
fi;
|
||||
|
||||
section "unit tests"
|
||||
unit_test_files="code/modules/unit_tests/**/**.dm"
|
||||
part "mob/living/carbon/human usage"
|
||||
if $grep 'allocate\(/mob/living/carbon/human[,\)]' code/modules/unit_tests/**/**.dm ||
|
||||
$grep 'new /mob/living/carbon/human\s?\(' ||
|
||||
$grep 'var/mob/living/carbon/human/\w+\s?=\s?new' ; then
|
||||
if $grep 'allocate\(/mob/living/carbon/human[,\)]' $unit_test_files ||
|
||||
$grep 'new /mob/living/carbon/human\s?\(' $unit_test_files ||
|
||||
$grep 'var/mob/living/carbon/human/\w+\s?=\s?new' $unit_test_files ; then
|
||||
echo
|
||||
echo -e "${RED}ERROR: Usage of mob/living/carbon/human detected in a unit test, please use mob/living/carbon/human/consistent.${NC}"
|
||||
st=1
|
||||
|
||||
Reference in New Issue
Block a user