Skip to content

Commit

Permalink
S3655: Add ITs in intentional findings (#7030)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaversa authored Apr 5, 2023
1 parent 96f86cc commit 8b872cf
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* <Your-Product-Name>
* Copyright (c) <Year-From>-<Year-To> <Your-Company-Name>
*
* Please configure this header in your SonarCloud/SonarQube quality profile.
* You can also set it in SonarLint.xml additional file for SonarLint or standalone NuGet analyzer.
*/

namespace IntentionalFindings
{
public class S3655
{
public void ValueAccessOnEmptyNullable()
{
int? i = null;
_ = i.Value; // Noncompliant (S3655) {{'i' is null on at least one execution path.}}
}
}
}

0 comments on commit 8b872cf

Please sign in to comment.