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 RedundantCurrentDirectoryInPath cop exception in case of require_relative without any arguments #12755

Commits on Mar 7, 2024

  1. Fix RedundantCurrentDirectoryInPath cop exception

    Cop `RedundantCurrentDirectoryInPath` throws exception
    upon encountering `requre_relative` invocation
    (`Kernel.require_relative` without any arguments).
    
    Although it doesn't make much sense, it's still a
    valid ruby program that should not trigger any internal
    rubocop exceptions.
    
    To fix the issue, an additional check of arguments presence
    is added.
    viralpraxis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    f8facdf View commit details
    Browse the repository at this point in the history