We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7011e1 commit f2ada3dCopy full SHA for f2ada3d
csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll
@@ -196,8 +196,13 @@ class MicrosoftAspNetCoreMvcControllerBaseClass extends Class {
196
*/
197
class MicrosoftAspNetCoreMvcController extends Class {
198
MicrosoftAspNetCoreMvcController() {
199
- exists(Assembly a |
200
- a.getName() = ["Microsoft.AspNetCore.Mvc.Core", "Microsoft.AspNetCore.Mvc.ViewFeatures"]
+ (
+ exists(Assembly a |
201
+ a.getName() = ["Microsoft.AspNetCore.Mvc.Core", "Microsoft.AspNetCore.Mvc.ViewFeatures"]
202
+ ) or
203
+ exists(UsingNamespaceDirective ns |
204
+ ns.getImportedNamespace() instanceof MicrosoftAspNetCoreMvcNamespace
205
+ )
206
) and
207
this.isPublic() and
208
not this.isAbstract() and
0 commit comments