Skip to content

Commit

Permalink
Code review 1
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaversa committed Nov 15, 2023
1 parent e643c9d commit 36de33b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ public void SomeMethod()
public class Repro_8342
{
[Private1] private protected void APrivateProtectedMethod() { }
[Public1, Private2] public void APublicMethodWithMultipleAttributes1() { }
[Public1][Private2] public void APublicMethodWithMultipleAttributes2() { }

private class Private1Attribute : Attribute { } // Noncompliant: FP: attribute used on a private protected method
private class Private2Attribute : Attribute { } // Noncompliant: FP: attribute used on a public method
private class Private3Attribute : Attribute { } // Noncompliant: FP: attribute used on a public method
public class Public1Attribute : Attribute { } // Compliant: public
}

0 comments on commit 36de33b

Please sign in to comment.