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 #8185] Fix a false positive for Style/YodaCondition #8186

Merged
merged 1 commit into from Jun 22, 2020

Commits on Jun 22, 2020

  1. [Fix rubocop#8185] Fix a false positive for Style/YodaCondition

    Fixes rubocop#8185.
    
    This PR fixes a false positive for `Style/YodaCondition` when
    interpolation is used on the left side.
    
    String interpolation (and Regexp interpolation) contains variables,
    I think it's acceptable to use it on the left hand side.
    koic committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    1e59fe1 View commit details
    Browse the repository at this point in the history