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

Improve Style/NestedTernaryOperator autocorrect for chained ternaries #11452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 14, 2023

  1. Improve Style/NestedTernaryOperator autocorrect for chained ternaries.

    `a ? b : c ? d : e` should be autocorrected to:
    
    ```
    if a
      b
    elsif c
      d
    else
      e
    end
    ```
    
    instead of:
    
    ```
    if a
      b
    else
      c ? d : e
    end
    ```
    FnControlOption committed Jan 14, 2023
    Configuration menu
    Copy the full SHA
    ef8e039 View commit details
    Browse the repository at this point in the history