Skip to content

Commit cd4d51e

Browse files
committed
1 parent 44a701f commit cd4d51e

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.globalconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ dotnet_diagnostic.SA0001.severity = none
10101010
dotnet_diagnostic.SA0002.severity = none
10111011

10121012
# SA1000: Keywords should be spaced correctly
1013-
dotnet_diagnostic.SA1000.severity = none
1013+
dotnet_diagnostic.SA1000.severity = warning
10141014

10151015
# SA1001: Commas should be spaced correctly
10161016
dotnet_diagnostic.SA1001.severity = none

src/Microsoft.PowerShell.Commands.Utility/commands/utility/UnblockFile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ protected override void ProcessRecord()
147147

148148
foreach (string path in pathsToProcess)
149149
{
150-
if(IsBlocked(path))
150+
if (IsBlocked(path))
151151
{
152152
UInt32 result = RemoveXattr(path, MacBlockAttribute, RemovexattrFollowSymLink);
153-
if(result != 0)
153+
if (result != 0)
154154
{
155155
string errorMessage = string.Format(CultureInfo.CurrentUICulture, UnblockFileStrings.UnblockError, path);
156156
Exception e = new InvalidOperationException(errorMessage);

src/Microsoft.PowerShell.ConsoleHost/host/msh/ProgressPane.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ class ProgressPane
102102

103103
// create cleared region to clear progress bar later
104104
_savedRegion = tempProgressRegion;
105-
for(int row = 0; row < rows; row++)
105+
for (int row = 0; row < rows; row++)
106106
{
107-
for(int col = 0; col < cols; col++)
107+
for (int col = 0; col < cols; col++)
108108
{
109109
_savedRegion[row, col].Character = ' ';
110110
}

src/System.Management.Automation/engine/TypeMetadata.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ private string GetProxyAttributeData(Attribute attrib, string prefix)
978978
string or = string.Empty;
979979
string[] regexOptionEnumValues = Enum.GetNames(typeof(System.Text.RegularExpressions.RegexOptions));
980980
981-
foreach(string regexOption in regexOptionEnumValues)
981+
foreach (string regexOption in regexOptionEnumValues)
982982
{
983983
System.Text.RegularExpressions.RegexOptions option = (System.Text.RegularExpressions.RegexOptions) Enum.Parse(
984984
typeof(System.Text.RegularExpressions.RegexOptions),

test/tools/TestExe/TestExe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private static int Main(string[] args)
1313
{
1414
if (args.Length > 0)
1515
{
16-
switch(args[0].ToLowerInvariant())
16+
switch (args[0].ToLowerInvariant())
1717
{
1818
case "-echoargs":
1919
EchoArgs(args);

test/tools/WebListener/Controllers/ResumeController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public async void Index()
3030
if (TryGetRangeHeader(out rangeHeader))
3131
{
3232
var range = GetRange(rangeHeader);
33-
if(range.From != null)
33+
if (range.From != null)
3434
{
3535
from = (int)range.From;
3636
}
3737

38-
if(range.To != null)
38+
if (range.To != null)
3939
{
4040
to = (int)range.To;
4141
}
@@ -49,7 +49,7 @@ public async void Index()
4949
return;
5050
}
5151

52-
if(to >= FileBytes.Length || from >= FileBytes.Length)
52+
if (to >= FileBytes.Length || from >= FileBytes.Length)
5353
{
5454
Response.StatusCode = StatusCodes.Status416RequestedRangeNotSatisfiable;
5555
Response.Headers[HeaderNames.ContentRange] = $"bytes */{FileBytes.Length}";
@@ -113,7 +113,7 @@ private void SetResumeResponseHeaders()
113113
private bool TryGetRangeHeader(out string rangeHeader)
114114
{
115115
var rangeHeaderSv = new StringValues();
116-
if(Request.Headers.TryGetValue("Range", out rangeHeaderSv))
116+
if (Request.Headers.TryGetValue("Range", out rangeHeaderSv))
117117
{
118118
rangeHeader = rangeHeaderSv.FirstOrDefault();
119119
return true;

0 commit comments

Comments
 (0)