Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support auto-correction for
Style/IfUnlessModifierOfIfUnless
This PR supports auto-correction for `Style/IfUnlessModifierOfIfUnless`. From: ```ruby condition ? then_part : else_part unless external_condition ``` To: ```ruby unless external_condition condition ? then_part : else_part end ``` Branch indentation is left to `Layout/IndentationWidth` cop to keep the code simple.
- Loading branch information
Showing
5 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters