Skip to content

Commit 6543df7

Browse files
authored
SA1020 Increment symbol '++' should not be preceded by a space (#7237)
1 parent d045190 commit 6543df7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eng/Common.globalconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ dotnet_diagnostic.SA1015.severity = suggestion
746746
dotnet_diagnostic.SA1019.severity = none
747747

748748
# Increment symbol '++' should not be preceded by a space
749-
dotnet_diagnostic.SA1020.severity = suggestion
749+
dotnet_diagnostic.SA1020.severity = warning
750750

751751
# Negative sign should be preceded by a space
752752
dotnet_diagnostic.SA1021.severity = suggestion

src/Build.UnitTests/Definition/ToolsetConfigurationReader_Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ private void CheckPathsTable(Dictionary<string, ProjectImportPathMatch> pathsTab
598598
var paths = pathsTable[kind];
599599
Assert.Equal(paths.SearchPaths.Count, expectedPaths.Length);
600600

601-
for (int i = 0; i < paths.SearchPaths.Count; i ++)
601+
for (int i = 0; i < paths.SearchPaths.Count; i++)
602602
{
603603
Assert.Equal(paths.SearchPaths[i], expectedPaths[i]);
604604
}

0 commit comments

Comments
 (0)