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

    …`Style/SafeNavigation`
    
    Fixes rubocop#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
      ```
    hoshinotsuyoshi committed Apr 30, 2019
    Configuration menu
    Copy the full SHA
    47b6eb5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a483547 View commit details
    Browse the repository at this point in the history