Skip to content
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

feat: Add unittests #16

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat: Add unittests #16

wants to merge 4 commits into from

Conversation

GeekMasher
Copy link
Contributor

This pull request to filter_sarif.py focuses on refactoring the code for better type annotations, readability, and functionality. It also includes new tests to ensure the changes work as expected.

Refactoring and Type Annotations:

  • filter_sarif.py: Added type annotations to match_path_and_rule, parse_pattern, and filter_sarif functions to improve code readability and maintainability. [1] [2] [3]

Functionality and Error Handling:

  • filter_sarif.py: Improved the filter_sarif function to return the filtered SARIF dictionary directly instead of writing to a file. Enhanced error messages for better clarity.

Testing Enhancements:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant