Skip to content

Commit 905d0e3

Browse files
authored
Fix formatting for CA5391 rule (#48941)
1 parent 994cc36 commit 905d0e3

File tree

1 file changed

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

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 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,31 +99,31 @@ 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
{
126-
FilterCollection filterCollection = new FilterCollection ();
126+
FilterCollection filterCollection = new FilterCollection();
127127
filterCollection.Add(typeof(FilterClass));
128128
}
129129
}
@@ -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)