-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Python: New FileSystem Access #14406
Conversation
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 for this PR 🙏 💪 The modeling you've added looks good, and thanks for adding tests that use the ConceptsTest setup 🙌
The one major thing I need from you is to restructure the modeling. So far we've kept an (unwritten) policy of using one .qll file for each library we've modeled, so while it's a little less boilerplate code to group them together in FileSystemAccess.qll
, I would like you to split them into separate .qll files (anyio, aiofile).
I'm going to add a change-note to highlight this modeling 👍
python/ql/test/library-tests/frameworks/FileSystemAccess/Query.ql
Outdated
Show resolved
Hide resolved
python/ql/test/library-tests/frameworks/FileSystemAccess/starlette.py
Outdated
Show resolved
Hide resolved
@RasmusWL do you think there is a need to add a query file to just add a small framework that just has less than 10 functions total? I'm just curious about this I'll make changes according to your review. |
please do all |
Ahh sorry, I wrongly wrote the query file instead of the library file. @RasmusWL do you think there is a need to add a library file to add a small framework that only has less than 10 functions total? I'm just curious about this I'll make changes according to your review. |
Yes, please do. I know it's a little more boilerplate code, but I would like to keep our structured approach for now 🙏 |
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 for making these changes 🙌 great work 👍
python/ql/test/library-tests/frameworks/baize/FileSystemAccess.py
Outdated
Show resolved
Hide resolved
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.
With that little thing fixed, I think we're good to go overall 👍 (will just do a performance test as well for good measure)
Performance looks fine 👍 |
No description provided.