You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: analyzers/tests/SonarAnalyzer.Test/TestCases/RouteTemplateShouldNotStartWithSlash.AspNet4x.vb
+19-19
Original file line number
Diff line number
Diff line change
@@ -1,56 +1,56 @@
1
1
ImportsSystem.Web.Mvc
2
2
3
3
<Route("[controller]")>
4
-
PublicClassNoncompliantController' Noncompliant {{Change the paths of the actions of this controller to be relative and adapt the controller route accordingly.}}
4
+
PublicClassNoncompliantController' FN Non-compliant {{Change the paths of the actions of this controller to be relative and adapt the controller route accordingly.}}
5
5
InheritsController
6
-
<Route("/Index1")>' Secondary
6
+
<Route("/Index1")>' FN Second-ary
7
7
PublicFunctionIndex1()AsActionResult
8
8
ReturnView()
9
9
EndFunction
10
10
11
-
<Route("/SubPath/Index2_1")>' Secondary
12
-
<Route("/[controller]/Index2_2")>' Secondary
11
+
<Route("/SubPath/Index2_1")>' FN Second-ary
12
+
<Route("/[controller]/Index2_2")>' FN Second-ary
13
13
PublicFunctionIndex2()AsActionResult
14
14
ReturnView()
15
15
EndFunction
16
16
17
-
<Route("/[action]")>' Secondary
17
+
<Route("/[action]")>' FN Second-ary
18
18
PublicFunctionIndex3()AsActionResult
19
19
ReturnView()
20
20
EndFunction
21
21
22
-
<Route("/SubPath/Index4_1")>' Secondary
23
-
<Route("/[controller]/Index4_2")>' Secondary
22
+
<Route("/SubPath/Index4_1")>' FN Second-ary
23
+
<Route("/[controller]/Index4_2")>' FN Second-ary
24
24
PublicFunctionIndex4()AsActionResult
25
25
ReturnView()
26
26
EndFunction
27
27
EndClass
28
28
29
29
<RoutePrefix("[controller]")>
30
-
PublicClassNoncompliantWithRoutePrefixController' Noncompliant {{Change the paths of the actions of this controller to be relative and adapt the controller route accordingly.}}
30
+
PublicClassNoncompliantWithRoutePrefixController' FN Non-compliant {{Change the paths of the actions of this controller to be relative and adapt the controller route accordingly.}}
31
31
InheritsController
32
-
<Route("/Index1")>' Secondary
32
+
<Route("/Index1")>' FN Second-ary
33
33
PublicFunctionIndex1()AsActionResult
34
34
ReturnView()
35
35
EndFunction
36
36
EndClass
37
37
38
38
<Route("[controller]")>
39
39
<Route("[controller]/[action]")>
40
-
PublicClassNoncompliantMultiRouteController' Noncompliant {{Change the paths of the actions of this controller to be relative and adapt the controller route accordingly.}}
40
+
PublicClassNoncompliantMultiRouteController' FN Non-compliant {{Change the paths of the actions of this controller to be relative and adapt the controller route accordingly.}}
41
41
InheritsController
42
-
<Route("/Index1")>' Secondary
42
+
<Route("/Index1")>' FN Second-ary
43
43
PublicFunctionIndex1()AsActionResult
44
44
ReturnView()
45
45
EndFunction
46
46
47
-
<Route("/SubPath/Index2_1")>' Secondary
48
-
<Route("/[controller]/Index2_2")>' Secondary
47
+
<Route("/SubPath/Index2_1")>' FN Second-ary
48
+
<Route("/[controller]/Index2_2")>' FN Second-ary
49
49
PublicFunctionIndex2()AsActionResult
50
50
ReturnView()
51
51
EndFunction
52
52
53
-
<Route("/[action]")>' Secondary
53
+
<Route("/[action]")>' FN Second-ary
54
54
PublicFunctionIndex3()AsActionResult
55
55
ReturnView()
56
56
EndFunction
@@ -81,20 +81,20 @@ Public Class CompliantController ' Compliant: at least one action has at least a
81
81
EndFunction
82
82
EndClass
83
83
84
-
PublicClassNoncompliantNoControllerRouteController' Noncompliant {{Change the paths of the actions of this controller to be relative and add a controller route with the common prefix.}}
84
+
PublicClassNoncompliantNoControllerRouteController' FN Non-compliant {{Change the paths of the actions of this controller to be relative and add a controller route with the common prefix.}}
0 commit comments