CSharpAnalyzers / ExceptionalReSharper

Extension for ReSharper which analyzes thrown and documented C# exceptions and suggests improvements
Microsoft Public License
124 stars 30 forks source link

Exclude whole assemblies #96

Open RedX2501 opened 4 years ago

RedX2501 commented 4 years ago

It would be nice to have an attribute (or setting) to exclude a whole assembly from analysis.

For example in test projects and it's classes and functions there is IMHO no need to document exceptions that might be thrown.

Currently the SuppressMessage attribute for Exceptional does not seem to work at assembly level.

ManticSic commented 4 years ago

Hey @RedX2501, to make sure that I don't miss understand your request: you want to exclude a whole project (.csproj, e. g. the test project)? Or do you want to disable Exceptional for a configuration generating a particular assembly?

RedX2501 commented 4 years ago

My use case is disabling it for a project.

RicoSuter commented 4 years ago

Maybe add a setting with namespace excludes? This can then mostly also be used to exclude projects/assemblies