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

Always expand indexables' full paths #1977

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Always expand indexables' full paths #1977

merged 1 commit into from
Apr 26, 2024

Commits on Apr 26, 2024

  1. Always expand indexables' full paths

    Depends on the `included_pattern`'s value, `Dir.glob` may return relative
    paths as its default base is the current working directory. For example,
    if the `included_pattern` is `**/*.rb`, the `Dir.glob` will return
    relative paths like `lib/foo.rb` instead of the full path like
    `/path/to/project/lib/foo.rb`.
    
    This commit ensures that the full paths are always expanded by using
    `File.expand_path` on the paths returned by `Dir.glob`.
    
    Fixes #1971
    st0012 committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    f8fe950 View commit details
    Browse the repository at this point in the history