Enable Style/FloatDivision cop
Ref: #42182 (closed)
What does this MR do and why?
This MR enables the Style/FloatDivision
cop. In a follow-up MR, we can run the auto-correction which should take care of the existing offences.
Screenshots or screen recordings
# bad
a.to_f / b.to_f
# good
a.to_f / b
a / b.to_f
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Max Orefice