File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
lib/semmle/code/csharp/frameworks/microsoft
test/library-tests/frameworks/microsoft Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -196,12 +196,8 @@ class MicrosoftAspNetCoreMvcControllerBaseClass extends Class {
196
196
*/
197
197
class MicrosoftAspNetCoreMvcController extends Class {
198
198
MicrosoftAspNetCoreMvcController ( ) {
199
- exists ( Assembly a , string name |
200
- a .getName ( ) = name and
201
- (
202
- name = "Microsoft.AspNetCore.Mvc.Core" or
203
- name = "Microsoft.AspNetCore.Mvc.ViewFeatures"
204
- )
199
+ exists ( Assembly a |
200
+ a .getName ( ) = [ "Microsoft.AspNetCore.Mvc.Core" , "Microsoft.AspNetCore.Mvc.ViewFeatures" ]
205
201
) and
206
202
this .isPublic ( ) and
207
203
not this .isAbstract ( ) and
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public string Index()
10
10
}
11
11
12
12
// derived from Microsoft.AspNetCore.Mvc.Controller which has suffix "Controller"
13
- public class HomeController1 : Controller
13
+ public class HomeController1 : Controller
14
14
{
15
15
public string Index ( )
16
16
{
@@ -74,7 +74,7 @@ public string Index()
74
74
}
75
75
}
76
76
77
- // contains generic paramiters
77
+ // contains generic parameters
78
78
public class NotHomeController3 < T > : Controller
79
79
{
80
80
public string Index ( )
You can’t perform that action at this time.
0 commit comments