Improve S2222: Expect operations to throw outside try statement #5806
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Area: VB.NET
VB.NET rules related issues.
Type: SE
Improve SE engine
Description
Expect operations to throw exception also outside try statement.
How
Implementation is easy
The affect on our test framework is big. As a prerequisite, we need to change the way Tag("") asserting works.
Change is scaffolded in a branch https://github.com/SonarSource/sonar-dotnet/tree/Pavel/SE-ExceptionsOutsideTry but many UTs needs polishing to make it run. The test framework update should be done in few PRs as a prerequisite:
The text was updated successfully, but these errors were encountered: