Skip to content

Commit

Permalink
S6964: Add FP repro for #9285 (#9296)
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed May 17, 2024
1 parent f35e9fa commit fcd4d1f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public class Model
[Custom] // Noncompliant repro for https://github.com/SonarSource/sonar-dotnet/issues/9282
public int ValuePropertyAnnotatedWithCustomAttribute { get; set; }

[JsonRequired] // Noncompliant - FP because the attribute is annotated with JsonRequiredAttribute
[JsonRequired] // Noncompliant - FP because the property is annotated with JsonRequiredAttribute
public int AnotherValueProperty { get; set; }

public required int RequiredProperty { get; set; } // Noncompliant - FP because the property has the required modifier
}

public class DerivedFromController : Controller
Expand Down

0 comments on commit fcd4d1f

Please sign in to comment.