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

Subfolders can't include glob special characters #12052

Closed
meric426 opened this issue Jul 17, 2023 · 0 comments
Closed

Subfolders can't include glob special characters #12052

meric426 opened this issue Jul 17, 2023 · 0 comments

Comments

@meric426
Copy link
Contributor

meric426 commented Jul 17, 2023

Related to #9593

Rubocop is unable to detect files within folders that contain special characters used by Glob, such as {}[]*?.


Expected behavior

rubocop . --list-target-files
[bar]/two.rb
{foo}/one.rb

Actual behavior

rubocop . --list-target-files
(empty)

Steps to reproduce the problem

mkdir sample
cd sample
mkdir \{foo\}
mkdir \[bar\]
touch \{foo\}/one.rb
touch \[bar\]/two.rb
rubocop . --list-target-files

RuboCop version

$ [bundle exec] rubocop -V
1.52.1 (using Parser 3.2.2.3, rubocop-ast 1.29.0, running on ruby 3.1.3) [arm64-darwin21]
@koic koic closed this as completed in 7fcd290 Jul 18, 2023
koic added a commit that referenced this issue Jul 18, 2023
[Fix #12052] Handle all glob special characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant