Skip to content

Conversation

@flowreaction
Copy link
Contributor

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.

@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 11, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions github-actions bot added A-cli Area - CLI C-enhancement Category - New feature or request labels Apr 11, 2025
@flowreaction flowreaction marked this pull request as ready for review April 11, 2025 10:55
@flowreaction flowreaction changed the title feat(lint): enhance config path resolution with error handling and add tests fix(lint): config path resolution when path contains '..' syntax Apr 11, 2025
@github-actions github-actions bot added the C-bug Category - Bug label Apr 11, 2025
@flowreaction flowreaction changed the title fix(lint): config path resolution when path contains '..' syntax fix(linter): config path resolution when path contains '..' syntax Apr 11, 2025
…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.
@flowreaction flowreaction force-pushed the fix-parent-path-resolving branch from a865ac2 to 703c5c4 Compare April 11, 2025 12:53
Copy link
Member

@Sysix Sysix left a 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.

@flowreaction
Copy link
Contributor Author

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 🙂

@flowreaction flowreaction requested a review from Sysix April 11, 2025 14:12
Copy link
Member

@Sysix Sysix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@flowreaction
Copy link
Contributor Author

flowreaction commented Apr 14, 2025

@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?

@Boshen Boshen merged commit 4e1f536 into oxc-project:main Apr 14, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI C-bug Category - Bug C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants