-
Notifications
You must be signed in to change notification settings - Fork 6
fix: Add handling error in python rules #12
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
430005e
fix: Add handling error in python rules
AsfhtgkDavid ce9ac55
test: add coverage for error handling in python rules
AliyaRazyapova 8069f80
Merge pull request #18 from AliyaRazyapova/fix/python-rules-additiona…
AsfhtgkDavid 75f5bc3
test: add security tests for python rules and fix permissions
AliyaRazyapova 68ac9bc
Merge branch 'AsfhtgkDavid:main' into fix/python-rules-additional-tests
AliyaRazyapova a9f0824
Merge pull request #19 from AliyaRazyapova/fix/python-rules-additiona…
AsfhtgkDavid 6e0c5a1
Merge branch 'AsfhtgkDavid:main' into fix/python-rules-additional-tests
AliyaRazyapova d265859
test: add security tests for python rules and fix permissions
AliyaRazyapova 6226ed4
test: set temp file permissions to 600 to satisfy security check
AliyaRazyapova 9a317b6
test: set temp file permissions to 600 to satisfy security check
AliyaRazyapova 659ecb0
test: temporary set permissions to 666 to work around security check bug
AliyaRazyapova e83faf1
fix security check logic and set test file permissions to 600
AliyaRazyapova 13b735d
Merge pull request #20 from AliyaRazyapova/fix/python-rules-additiona…
AsfhtgkDavid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The new error handling logic for Python rule processing lacks test coverage. Consider adding unit tests that verify:
getattr("match")failsgetattr("fix")failsmatch_func.call1()failsfix_func.call1()failsThese tests would help ensure the error handling behaves correctly and prevent regressions. Other modules in
src/fix/(likerust.rsand individual rule files) have comprehensive test coverage that could serve as examples.