-
Notifications
You must be signed in to change notification settings - Fork 22
lsp tests validation #944
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
lsp tests validation #944
Conversation
|
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…s-dir-when-no-test-dir-present
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.
Validate the user input. Do not accept paths like cd ../, ../, or similar.
CLI.tests.validation.mp4 |
⚡️ Codeflash found optimizations for this PR📄 11% (0.11x) speedup for
|
…s-dir-when-no-test-dir-present
…s-dir-when-no-test-dir-present
KRRT7
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.
this is doing malicious commands validations, not path validations we should remove it anyways, also, this is very basic mal input validation that can be bypassed quite easily by someone reading codeflash src, let's just remove it please @mashraf-222 , keep the path validation itself
…s-dir-when-no-test-dir-present
PR Type
Bug fix, Enhancement
Description
Validate tests_root directory existence
Support dict and object config access
Improve error response for invalid path
Use config-relative path resolution
Diagram Walkthrough
File Walkthrough
beta.py
Add tests_root validation and config accessorcodeflash/lsp/beta.py