-
-
Notifications
You must be signed in to change notification settings - Fork 761
fix(linter): config path resolution when path contains '..' syntax #10367
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(linter): config path resolution when path contains '..' syntax #10367
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
…d tests Improved the `find_oxlint_config` function to handle paths containing parent references ( ../.. syntax ) Added unit tests to verify behavior for valid and invalid config paths, including cases with parent directory references.
a865ac2 to
703c5c4
Compare
Sysix
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
canonicalize will generate a \\?\ prefix, which caused others bugs. And it is a slow syscall:
Try the approach from #9382 with absolute.
oh ok, thanks for the link, i changed it and tests still pass so looks to be the better option 🙂 |
Sysix
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@Sysix, thanks for reviewing! What is the process from here on? I noticed that this Project uses graphite merge queues. So no need to merge from here right? |
Improved the
find_oxlint_configfunction to handle paths containing parent references ( ../.. syntax )Added unit tests to verify behavior for valid and invalid config paths, including cases with parent directory references.