Skip to content

Enable Style/FloatDivision cop

Max Orefice requested to merge morefice/enable-syle-cop into master

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.

Edited by Max Orefice

Merge request reports