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 #6738] Prevent auto-correct conflict of `Style/Next` and `Style/SafeNavigation` #7006

Commits on Apr 30, 2019
  1. [Fix #6738] Prevent auto-correct conflict of `Style/Next` and `Style/…

    hoshinotsuyoshi committed Apr 30, 2019
    …SafeNavigation`
    
    Fixes #6738
    
    Solves problem like below:
    
      ```ruby
      until x
        if foo
          foo.some_method do
            y
          end
        end
      end
      ```
    
      auto-corrects badly;
    
      ```ruby
      # frozen_string_literal: true
    
      until x
        next unless foofoo&.some_method do
          y
        end
      end
      ```
You can’t perform that action at this time.