Skip to content

Commit fbe139e

Browse files
committed
Fix formatting for CA5391 rule
1 parent fd348a8 commit fbe139e

File tree

1 file changed

+8
-8
lines changed
  • docs/fundamentals/code-analysis/quality-rules

1 file changed

+8
-8
lines changed

docs/fundamentals/code-analysis/quality-rules/ca5391.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ using Microsoft.AspNetCore.Mvc;
7474
class ExampleController : Controller
7575
{
7676
[HttpDelete]
77-
public IActionResult ExampleAction (string actionName)
77+
public IActionResult ExampleAction(string actionName)
7878
{
7979
return null;
8080
}
8181

8282
[ValidateAntiForgeryToken]
8383
[HttpDelete]
84-
public IActionResult AnotherAction (string actionName)
84+
public IActionResult AnotherAction(string actionName)
8585
{
8686
return null;
8787
}
@@ -99,29 +99,29 @@ class ExampleController : Controller
9999
{
100100
[ValidateAntiForgeryToken]
101101
[HttpDelete]
102-
public IActionResult AnotherAction (string actionName)
102+
public IActionResult AnotherAction(string actionName)
103103
{
104104
return null;
105105
}
106106

107107
[HttpDelete]
108-
public IActionResult ExampleAction (string actionName)
108+
public IActionResult ExampleAction(string actionName)
109109
{
110110
return null;
111111
}
112112
}
113113

114114
class FilterClass : IAsyncAuthorizationFilter
115115
{
116-
public Task OnAuthorizationAsync (AuthorizationFilterContext context)
116+
public Task OnAuthorizationAsync(AuthorizationFilterContext context)
117117
{
118118
return null;
119119
}
120120
}
121121

122122
class BlahClass
123123
{
124-
public static void BlahMethod ()
124+
public static void BlahMethod()
125125
{
126126
FilterCollection filterCollection = new FilterCollection ();
127127
filterCollection.Add(typeof(FilterClass));
@@ -138,14 +138,14 @@ class ExampleController : Controller
138138
{
139139
[ValidateAntiForgeryToken]
140140
[HttpDelete]
141-
public IActionResult ExampleAction ()
141+
public IActionResult ExampleAction()
142142
{
143143
return null;
144144
}
145145

146146
[ValidateAntiForgeryToken]
147147
[HttpDelete]
148-
public IActionResult AnotherAction ()
148+
public IActionResult AnotherAction()
149149
{
150150
return null;
151151
}

0 commit comments

Comments
 (0)