Lint/RedundantRequireStatement
breaks code with modifiers
#11120
Labels
Lint/RedundantRequireStatement
breaks code with modifiers
#11120
Autocorrect breaks code when
require
is followed by postfixunless
.Expected behavior
Autocorrects into valid Ruby code, possibly like below (considering the modifier condition may have side effects.)
Actual behavior
effectively autocorrects code into
, which is syntactically incorrect.
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: