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

Fix an incorrect auto-correct for Lint/NumberConversion #9633

Merged

Commits on Mar 23, 2021

  1. Fix an incorrect auto-correct for Lint/NumberConversion

    For example, the following auto-correction test code is invalid syntax:
    
    ```ruby
    "1,2,3,foo,5,6,7,8".split(',').map({ |i| Integer(i, 10) })
    ```
    
    This PR removes invalid parentheses and auto-corrects it to valid syntax:
    
    ```ruby
    "1,2,3,foo,5,6,7,8".split(',').map { |i| Integer(i, 10) }
    ```
    koic committed Mar 23, 2021
    Copy the full SHA
    ee40857 View commit details
    Browse the repository at this point in the history