ExceptionAnalyzer icon indicating copy to clipboard operation
ExceptionAnalyzer copied to clipboard

Roslyn-based analyzer for exception handling best practices

Results 14 ExceptionAnalyzer issues
Sort by recently updated
recently updated
newest added

On both nuget.org: https://www.nuget.org/packages/ExceptionAnalyzer/ and in the README.md, exception is spelled as "excpetion" in a few places.

Consider following scenario: ``` catch (SomethingException ex) { log.Error(ex); return false; } ``` Why do you mark this as error? If exception already observed & logged, why this is a...

Hi Sergey, I'm started making something like that https://github.com/leotsarev/hardcode-analyzer/tree/master/Tsarev.Analyzer.Exceptions and after that I stumbled upon your project. Will you willing to accept some pull requests and package your analyzer for...

In most simple form the rule can tell that the method throws, in more advanced form analyzer can deal with current class and suggest attributes for public methods even when...

Don't know is it possible to implement! But would be good to try!

Quick fix should be the same as for iterator blocks.

Don't know about quick fix: method should be splitted in two (or switched to Contract.Requires)