diff --git a/SpacemanDMM.toml b/SpacemanDMM.toml index 05cb81d6b6..eb25c8a0cd 100644 --- a/SpacemanDMM.toml +++ b/SpacemanDMM.toml @@ -1,5 +1,9 @@ [langserver] dreamchecker = true +#[code_standards] +#disallow_relative_type_definitions = true +#disallow_relative_proc_definitions = true + [dmdoc] use_typepath_names = true diff --git a/code/modules/unit_tests/surgeries.dm b/code/modules/unit_tests/surgeries.dm index b9ebb586f3..6348057f79 100644 --- a/code/modules/unit_tests/surgeries.dm +++ b/code/modules/unit_tests/surgeries.dm @@ -2,14 +2,14 @@ var/mob/living/carbon/human/patient = allocate(/mob/living/carbon/human) var/mob/living/carbon/human/user = allocate(/mob/living/carbon/human) - TEST_ASSERT_EQUAL(patient.get_missing_limbs().len, 0, "Patient is somehow missing limbs before surgery") + TEST_ASSERT_EQUAL(length(patient.get_missing_limbs()), 0, "Patient is somehow missing limbs before surgery") var/datum/surgery/amputation/surgery = new(patient, BODY_ZONE_R_ARM, patient.get_bodypart(BODY_ZONE_R_ARM)) var/datum/surgery_step/sever_limb/sever_limb = new sever_limb.success(user, patient, BODY_ZONE_R_ARM, null, surgery) - TEST_ASSERT_EQUAL(patient.get_missing_limbs().len, 1, "Patient did not lose any limbs") + TEST_ASSERT_EQUAL(length(patient.get_missing_limbs()), 1, "Patient did not lose any limbs") TEST_ASSERT_EQUAL(patient.get_missing_limbs()[1], BODY_ZONE_R_ARM, "Patient is missing a limb that isn't the one we operated on") /datum/unit_test/brain_surgery/Run() diff --git a/tools/ci/check_grep.sh b/tools/ci/check_grep.sh index daef5e0a22..bcfc28c4a4 100755 --- a/tools/ci/check_grep.sh +++ b/tools/ci/check_grep.sh @@ -68,10 +68,10 @@ while read f; do st=1 fi; done < <(find . -type f -name '*.dm') -if grep -P '^/[\w/]\S+\(.*(var/|, ?var/.*).*\)' code/**/*.dm; then - echo "changed files contains proc argument starting with 'var'" - # st=1 # annoy the coders instead of causing it to fail -fi; +# if grep -P '^/[\w/]\S+\(.*(var/|, ?var/.*).*\)' code/**/*.dm; then +# echo "changed files contains proc argument starting with 'var'" +# st=1 # annoy the coders instead of causing it to fail +# fi; if grep -i 'centcomm' code/**/*.dm; then echo "ERROR: Misspelling(s) of CENTCOM detected in code, please remove the extra M(s)." st=1