Add a rule to catch int(round(...)
NeilGirdhar opened this issue · comments
Neil Girdhar commented
int(round(x))
and int(round(x, 0))
and int(round(x, None))
can all simply be written round(x)
. However, unnecessary casts to int
are prevalent. Please consider adding a rule to catch these?
Zanie Blue commented
Seems reasonable to me. unnecessary-round-cast
or something?
Aaron Gokaslan commented
This sounds like a good refurb rule. @dosisod