DoubleNegation
default style (allowed_in_returns
) should allow methods with rescue blocks
#10010
Labels
DoubleNegation
default style (allowed_in_returns
) should allow methods with rescue blocks
#10010
obs.: This is probably more a feature request than a bug - please let me know your thoughts.
Expected behavior
Since RuboCop's
Style/DoubleNegation
cop default configuration (allowed_in_returns
) allows this:I would expect it to also allow this use of double negation:
That probably means to also allow this other usage:
Actual behavior
RuboCop's
Style/DoubleNegation
flags the double negation usage on any method that contains a rescue block.RuboCop version
The text was updated successfully, but these errors were encountered: