CI now bans the use of weird spacing in conditionals (#22777)

* no more spaces

* Matthew 10:22

* fixes

* dgamerl review

* Update code/modules/hydroponics/plant_genes.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Update code/modules/mob/living/simple_animal/bot/ed209bot.dm

* Update code/modules/mob/mob.dm

* Update code/modules/mob/mob.dm

* Update code/modules/mob/mob.dm

* Update code/modules/mob/mob.dm

* Update code/modules/mob/mob.dm

* Update code/modules/pda/PDA.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* fuck

* bah

* Update tools/ci/check_grep2.py

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* oops

* guh

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
Contrabang
2023-11-12 15:59:43 -05:00
committed by GitHub
parent 35754c77ea
commit 48d7b00a0d
204 changed files with 562 additions and 544 deletions
@@ -239,7 +239,7 @@
return
if(user.restrained() || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
return
if((!( istype(O, /atom/movable) ) || O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src)))
if((!istype(O, /atom/movable) || O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src)))
return
if(!ishuman(user) && !isrobot(user)) //No ghosts, you cannot shove people into fucking lockers
return
@@ -90,7 +90,7 @@
if(W != user.get_active_hand())
to_chat(user, "You must be holding the pen to perform this action.")
return
if(! Adjacent(user))
if(!Adjacent(user))
to_chat(user, "You have moved too far away from the cardboard box.")
return
decalselection = replacetext(decalselection, " ", "_")
+2 -2
View File
@@ -22,9 +22,9 @@
. = ..()
if(start_showpieces.len && !start_showpiece_type)
var/list/showpiece_entry = pick(start_showpieces)
if (showpiece_entry && showpiece_entry["type"])
if(showpiece_entry && showpiece_entry["type"])
start_showpiece_type = showpiece_entry["type"]
if (showpiece_entry["trophy_message"])
if(showpiece_entry["trophy_message"])
trophy_message = showpiece_entry["trophy_message"]
if(start_showpiece_type)
showpiece = new start_showpiece_type (src)
@@ -119,7 +119,7 @@
update_appearance(UPDATE_NAME | UPDATE_OVERLAYS)
/obj/structure/door_assembly/crowbar_act(mob/user, obj/item/I)
if(state != AIRLOCK_ASSEMBLY_NEEDS_SCREWDRIVER )
if(state != AIRLOCK_ASSEMBLY_NEEDS_SCREWDRIVER)
return
. = TRUE
if(!I.tool_use_check(user, 0))
@@ -140,7 +140,7 @@
update_appearance(UPDATE_NAME | UPDATE_OVERLAYS)
/obj/structure/door_assembly/screwdriver_act(mob/user, obj/item/I)
if(state != AIRLOCK_ASSEMBLY_NEEDS_SCREWDRIVER )
if(state != AIRLOCK_ASSEMBLY_NEEDS_SCREWDRIVER)
return
. = TRUE
if(!I.tool_use_check(user, 0))
+1 -1
View File
@@ -107,7 +107,7 @@
to_chat(user, "<span class='warning'>You need at least five rods to add plating!</span>")
return
to_chat(user, "<span class='notice'>You start adding plating...</span>")
if (do_after(user, 40, target = src))
if(do_after(user, 40, target = src))
if(!loc || !S || S.get_amount() < 5)
return
S.use(5)
@@ -84,7 +84,7 @@
return ..()
/obj/structure/kitchenspike/MouseDrop_T(mob/living/victim, mob/living/user)
if (!user.Adjacent(src) || !user.Adjacent(victim) || isAI(user) || !ismob(victim))
if(!user.Adjacent(src) || !user.Adjacent(victim) || isAI(user) || !ismob(victim))
return
if(isanimal(user) && victim != user)
return // animals cannot put mobs other than themselves onto spikes
+6 -6
View File
@@ -11,11 +11,11 @@
/obj/structure/ladder/Initialize(mapload, obj/structure/ladder/up, obj/structure/ladder/down)
. = ..()
if (up)
if(up)
src.up = up
up.down = src
up.update_icon()
if (down)
if(down)
src.down = down
down.up = src
down.update_icon()
@@ -38,7 +38,7 @@
L.update_icon()
break
if(!up)
for (var/obj/structure/ladder/L in locate(T.x, T.y, T.z + 1))
for(var/obj/structure/ladder/L in locate(T.x, T.y, T.z + 1))
up = L
L.down = src // Don't waste effort looping the other way
L.update_icon()
@@ -93,7 +93,7 @@
if(up && down)
var/result = alert("Go up or down [src]?", "[name]", "Up", "Down", "Cancel")
if (!is_ghost && !in_range(src, user))
if(!is_ghost && !in_range(src, user))
return // nice try
switch(result)
if("Up")
@@ -164,13 +164,13 @@
down = L
L.up = src
L.update_icon()
if (up)
if(up)
break // break if both our connections are filled
else if(!up && L.height == height + 1)
up = L
L.down = src
L.update_icon()
if (down)
if(down)
break // break if both our connections are filled
update_icon()
+3 -3
View File
@@ -138,7 +138,7 @@
/obj/structure/morgue/attack_hand(mob/user as mob)
if(connected)
for(var/atom/movable/A in connected.loc)
if(!(A.anchored))
if(!A.anchored)
A.forceMove(src)
get_revivable(TRUE)
playsound(loc, open_sound, 50, 1)
@@ -241,7 +241,7 @@
/obj/structure/m_tray/attack_hand(mob/user as mob)
if(connected)
for(var/atom/movable/A as mob|obj in loc)
if(!( A.anchored ))
if(!A.anchored)
A.forceMove(connected)
connected.connected = null
connected.update_icon(connected.update_state())
@@ -544,7 +544,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
/obj/structure/c_tray/MouseDrop_T(atom/movable/O, mob/living/user)
if((!( istype(O, /atom/movable) ) || O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src) || user.contents.Find(O)))
if((!istype(O, /atom/movable) || O.anchored || get_dist(user, src) > 1 || get_dist(user, O) > 1 || user.contents.Find(src) || user.contents.Find(O)))
return
if(!ismob(O) && !istype(O, /obj/structure/closet/body_bag))
return
+4 -4
View File
@@ -72,7 +72,7 @@
if(flipped)
var/type = 0
var/subtype = null
for(var/direction in list(turn(dir,90), turn(dir,-90)) )
for(var/direction in list(turn(dir,90), turn(dir,-90)))
var/obj/structure/table/T = locate(/obj/structure/table,get_step(src,direction))
if(T && T.flipped)
type++
@@ -190,7 +190,7 @@
/obj/structure/table/MouseDrop_T(obj/O, mob/user)
if(..())
return TRUE
if((!( isitem(O) ) || user.get_active_hand() != O))
if((!isitem(O) || user.get_active_hand() != O))
return
if(isrobot(user))
return
@@ -346,7 +346,7 @@
if(flipped)
return 0
if( !straight_table_check(turn(direction,90)) || !straight_table_check(turn(direction,-90)) )
if(!straight_table_check(turn(direction,90)) || !straight_table_check(turn(direction,-90)))
return 0
dir = direction
@@ -893,7 +893,7 @@
. = . || mover.checkpass(PASSTABLE)
/obj/structure/rack/MouseDrop_T(obj/O, mob/user)
if((!( isitem(O) ) || user.get_active_hand() != O))
if((!isitem(O) || user.get_active_hand() != O))
return
if(isrobot(user))
return