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

Add analyzer to check for for user throw keywords in NormalizeInput and Validate #647

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

SteveDunn
Copy link
Owner

Implements #640

… DoNotThrowFromUserCodeAnalyzer to enforce exception handling. This commit introduces a new analyzer, `DoNotThrowFromUserCodeAnalyzer`, that issues warnings (VOG032) when value objects throw exceptions, to prevent undesirable side effects. Tests for various scenarios have been added to ensure proper functioning of this analyzer.
Enhanced `DoNotThrowFromUserCodeAnalyzer` to only flag exceptions within `NormalizeInput` and `Validate` methods. Added error handling in the `MongoScenario` to skip the scenario gracefully if Docker is not running. Updated related tests to cover new conditions.
@SteveDunn SteveDunn merged commit 9e5b8e0 into main Jul 26, 2024
6 checks passed
@SteveDunn SteveDunn deleted the throw-analyzer branch July 26, 2024 06:13
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