useIdivUse .idiv() instead of math.floor(x / y) or math.floor(x * 0.5) for integer division.idivsmall-rules/prefer-idivPrefer .idiv() for integer division instead of math.floor(x / y) or math.floor(x * 0.5).
roblox-ts has x.idiv(y). It does what math.floor(x / y) does, and it compiles to x // y. That skips a
floor call. It should be a bit faster, and it says what you meant.
Auto-fixes math.floor(x / y) to x.idiv(y). It only reports when the right side is a division. It skips
odd cases.
useIdivUse .idiv() instead of math.floor(x / y) or math.floor(x * 0.5) for integer division.This rule does not accept options.
math.floor(x / y);After auto-fix
x.idiv(y);x.idiv(y);