do-not-force-yet

This commit is contained in:
Letter N
2020-12-29 14:09:45 +08:00
parent 3996f50a00
commit dbe01c38ca
3 changed files with 10 additions and 6 deletions

View File

@@ -1,5 +1,9 @@
[langserver]
dreamchecker = true
#[code_standards]
#disallow_relative_type_definitions = true
#disallow_relative_proc_definitions = true
[dmdoc]
use_typepath_names = true

View File

@@ -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()

View File

@@ -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