Skip to content

Commit

Permalink
S1144 Repro for #8532
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Pohlmann committed Jan 15, 2024
1 parent 5decea0 commit d78e412
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,3 +434,13 @@ private class Private2Attribute : Attribute { } // Noncompliant: FP: attribute u
private class Private3Attribute : Attribute { } // Noncompliant: FP: attribute used on a protected method
private class Private4Attribute : Attribute { } // Noncompliant: FP: attribute used on a private method used by a public method
}

// https://github.com/SonarSource/sonar-dotnet/issues/8532
[Serializable]
public class Repro_8532
{
private string type; // Noncompliant FP
private string key { get; set; } // Noncompliant FP
[NonSerialized]
private string value; // FN
}

0 comments on commit d78e412

Please sign in to comment.