-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(rule-tester): normalize paths before checking if they escape cwd #11525
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(rule-tester): normalize paths before checking if they escape cwd #11525
Conversation
Thanks for the PR, @dbarabashh! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
View your CI Pipeline Execution ↗ for commit 6ff0c5a
☁️ Nx Cloud last updated this comment at |
Not very sure if this is the same problem as in the previous PR. But it looks like it is coming from the main branch and needs to be fixed. @JoshuaKGoldberg, @kirkwaiblinger wdyt? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11525 +/- ##
=======================================
Coverage 90.87% 90.87%
=======================================
Files 505 505
Lines 51146 51146
Branches 8424 8424
=======================================
Hits 46480 46480
Misses 4652 4652
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
Looks good! just requesting a testing tweak
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.
Lovely, thanks!
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.
✨
9529ac1
into
typescript-eslint:main
🚀 |
PR Checklist
Overview
Paths like
'./../../file.ts'
were not being detected as escaping the current directory because the check only looked for paths starting with'..'
. This fix normalizes paths before checking, so paths like'./../'
and'./../../'
are properly handled.