-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
96f86cc
commit 8b872cf
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
analyzers/its/sources/ManuallyAddedNoncompliantIssues.CS/IntentionalFindings/S3655.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.}} | ||
} | ||
} | ||
} |