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 a false positive for Lint/LiteralAsCondition #7913

Merged

Commits on May 9, 2020

  1. Fix a false positive for Lint/LiteralAsCondition

    This PR fixes a false positive for `Lint/LiteralAsCondition`
    when using `true` literal in `while` and similar cases.
    
    `while true` is a known idiom.
    
    Normally `loop` is used, OTOH `while true` may be selected for
    speeding up. Users use these methods depending on use case.
    That was introduced as part of RubyKaigi 2019.
    https://rubykaigi.org/2019/presentations/ktou.html
    koic committed May 9, 2020
    Copy the full SHA
    4244b24 View commit details
    Browse the repository at this point in the history