Derived from the refurb linter.
Fix is sometimes available.
This rule is unstable and in preview. The
--preview flag is required for use.
What it does#
if expressions that can be replaced with
Why is this bad?#
if expression that selects the lesser or greater of two
sub-expressions can be replaced with a
respectively. When possible, prefer
max(), as they're more
concise and readable than the equivalent