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

Make Lint/RedundantSafeNavigation aware of constant receiver #12246

Commits on Oct 5, 2023

  1. Make Lint/RedundantSafeNavigation aware of constant receiver

    Fixes rubocop/rubocop-rails#1104.
    
    This is an issue with RuboCop Rails, but it can likely be addressed as a generic issue.
    
    So, this PR makes `Lint/RedundantSafeNavigation` aware of constant receiver.
    Because use cases where a constant is `nil` are rare and an offense is detected
    when the receiver is a constant. And this cop is already marked as unsafe.
    koic committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    bed8c22 View commit details
    Browse the repository at this point in the history