Skip to content

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:

@GeekMasher GeekMasher requested a review from aegilops October 16, 2024 13:23
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.

2 participants