Skip to content

Commit 75eaccc

Browse files
committed
1 parent 1f706d2 commit 75eaccc

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

.globalconfig

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

10111011
# SA1000: Keywords should be spaced correctly
1012-
dotnet_diagnostic.SA1000.severity = none
1012+
dotnet_diagnostic.SA1000.severity = warning
10131013

10141014
# SA1001: Commas should be spaced correctly
10151015
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
@@ -146,10 +146,10 @@ protected override void ProcessRecord()
146146

147147
foreach (string path in pathsToProcess)
148148
{
149-
if(IsBlocked(path))
149+
if (IsBlocked(path))
150150
{
151151
UInt32 result = RemoveXattr(path, MacBlockAttribute, RemovexattrFollowSymLink);
152-
if(result != 0)
152+
if (result != 0)
153153
{
154154
string errorMessage = string.Format(CultureInfo.CurrentUICulture, UnblockFileStrings.UnblockError, path);
155155
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/Modules/ImportModuleCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,15 +2024,15 @@ internal override IList<PSModuleInfo> ImportModulesUsingWinCompat(IEnumerable<st
20242024
// perform necessary preparations if module has to be imported with NoClobber mode
20252025
if (filteredModuleNames != null)
20262026
{
2027-
foreach(string moduleName in filteredModuleNames)
2027+
foreach (string moduleName in filteredModuleNames)
20282028
{
20292029
PrepareNoClobberWinCompatModuleImport(moduleName, null, ref importModuleOptions);
20302030
}
20312031
}
20322032

20332033
if (filteredModuleFullyQualifiedNames != null)
20342034
{
2035-
foreach(var moduleSpec in filteredModuleFullyQualifiedNames)
2035+
foreach (var moduleSpec in filteredModuleFullyQualifiedNames)
20362036
{
20372037
PrepareNoClobberWinCompatModuleImport(null, moduleSpec, ref importModuleOptions);
20382038
}

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 @@ 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)