Skip to content

Commit f27b5d5

Browse files
JarLobmichaelnebel
authored andcommitted
Fix code style warnings
1 parent 105462a commit f27b5d5

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,13 @@ class MicrosoftAspNetCoreMvcNonActionAttribute extends MicrosoftAspNetCoreMvcAtt
6363
}
6464

6565
class MicrosoftAspNetCoreMvcNonControllerAttribute extends MicrosoftAspNetCoreMvcAttribute {
66-
MicrosoftAspNetCoreMvcNonControllerAttribute() { getType().hasName("NonControllerAttribute") }
66+
MicrosoftAspNetCoreMvcNonControllerAttribute() {
67+
this.getType().hasName("NonControllerAttribute")
68+
}
6769
}
6870

6971
class MicrosoftAspNetCoreMvcControllerAttribute extends MicrosoftAspNetCoreMvcAttribute {
70-
MicrosoftAspNetCoreMvcControllerAttribute() { getType().hasName("ControllerAttribute") }
72+
MicrosoftAspNetCoreMvcControllerAttribute() { this.getType().hasName("ControllerAttribute") }
7173
}
7274

7375
/** The `Microsoft.AspNetCore.Antiforgery` namespace. */
@@ -194,11 +196,12 @@ class MicrosoftAspNetCoreMvcControllerBaseClass extends Class {
194196
class MicrosoftAspNetCoreMvcController extends Class {
195197
MicrosoftAspNetCoreMvcController() {
196198
(
197-
getABaseType*() instanceof MicrosoftAspNetCoreMvcControllerBaseClass or
198-
getABaseType*().hasName("%Controller") or
199-
getABaseType*().getAnAttribute() instanceof MicrosoftAspNetCoreMvcControllerAttribute
199+
this.getABaseType*() instanceof MicrosoftAspNetCoreMvcControllerBaseClass or
200+
this.getABaseType*().hasName("%Controller") or
201+
this.getABaseType*().getAnAttribute() instanceof MicrosoftAspNetCoreMvcControllerAttribute
200202
) and
201-
not getABaseType*().getAnAttribute() instanceof MicrosoftAspNetCoreMvcNonControllerAttribute
203+
not this.getABaseType*().getAnAttribute() instanceof
204+
MicrosoftAspNetCoreMvcNonControllerAttribute
202205
}
203206

204207
/** Gets an action method for this controller. */

0 commit comments

Comments
 (0)