Incorrect auto-correction for Rails/RedundantActiveRecordAllMethod
when all
has parentheses
#1119
Labels
bug
Something isn't working
There is a case where the auto-correction for
Rails/RedundantActiveRecordAllMethod
failed. I apologize for the recurring oversights.When
all
has parentheses andStyle/MethodCallWithoutArgsParentheses
is disabled, running rubocop results in a failed auto-correction.Expected behavior
The code should be corrected to:
Actual behavior
But instead, it gets corrected to:
Steps to reproduce the problem
Rails/RedundantActiveRecordAllMethod
enabled:Style/MethodCallWithoutArgsParentheses
is enabled, this issue does not occur.RuboCop version
The text was updated successfully, but these errors were encountered: