Enforce better exception handling in C#/.NET by ensuring exceptions are explicitly handled.

analyzer codefix csharp dotnet exception-handling roslyn
2 Open Issues Need Help Last updated: Jul 23, 2025

Open Issues Need Help

View All on GitHub
Improve code fixers about 1 month ago

AI Summary: Improve the code fixes provided by the CheckedExceptions Roslyn analyzer. This involves fixing a newline trivia bug, renaming existing code fixes for better clarity, optimizing the 'Add throws declaration' fix to use a single attribute instead of two, and investigating the creation of a new code fix: 'Catch exception in surrounding try/catch'.

Complexity: 3/5
enhancement good first issue area-codefixer

Enforce better exception handling in C#/.NET by ensuring exceptions are explicitly handled.

C#
#analyzer#codefix#csharp#dotnet#exception-handling#roslyn

AI Summary: Debug and fix a bug in a Roslyn analyzer that adds a `ThrowsAttribute` declaration to C# code. The bug causes an unexpected newline character to be inserted after the added attribute. The fix involves refining the analyzer's handling of code trivia (whitespace and comments) during code modification. Improving the codefix's description is also requested.

Complexity: 4/5
bug good first issue area-codefixer

Enforce better exception handling in C#/.NET by ensuring exceptions are explicitly handled.

C#
#analyzer#codefix#csharp#dotnet#exception-handling#roslyn