Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support autocorrection for Style/IfWithSemicolon #7937

Commits on May 7, 2020

  1. Support autocorrection for Style/IfWithSemicolon

    This PR supports autocorrection for `Style/IfWithSemicolon` cop.
    And it change to accept the following case that without `else` branch.
    
    ```ruby
    if cond; run end
    ```
    
    That case is corrected to a modifier form by `Style/IfUnlessModifier` cop.
    
    ```ruby
    run if cond
    ```
    
    Therefore, this cop does not handle it.
    koic committed May 7, 2020
    Copy the full SHA
    34ec3c6 View commit details
    Browse the repository at this point in the history