You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…leanLiteralBranches`
Fixesrubocop#9454.
This PR fixes an incorrect auto-correct for `Style/IfWithBooleanLiteralBranches`
when using `elsif do_something?` with boolean literal branches.
…eralBranches`
Fixes#9454.
This PR fixes an incorrect auto-correct for `Style/IfWithBooleanLiteralBranches`
when using `elsif do_something?` with boolean literal branches.
The new
Style/IfWithBooleanLiteralBranches
cop does a bad autocorrect in certain cases:The following code registers the offense and is autocorrected incorrectly:
Expected behavior
The code is corrected to
Actual behavior
The code is corrected to:
Steps to reproduce the problem
.rubocop.yml
file containing:rubocop -A
orrubocop -a
on that file.RuboCop version
The text was updated successfully, but these errors were encountered: