Skip to content

Commit d929841

Browse files
authored
Enable SA1507: Code should not contain multiple blank lines in a row (#14136)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md
1 parent f14c76a commit d929841

4 files changed

Lines changed: 1 addition & 4 deletions

File tree

.globalconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ dotnet_diagnostic.SA1505.severity = none
13741374
dotnet_diagnostic.SA1506.severity = none
13751375

13761376
# SA1507: Code should not contain multiple blank lines in a row
1377-
dotnet_diagnostic.SA1507.severity = none
1377+
dotnet_diagnostic.SA1507.severity = warning
13781378

13791379
# SA1508: Closing braces should not be preceded by blank line
13801380
dotnet_diagnostic.SA1508.severity = none

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9227,7 +9227,6 @@ private void Process_Types_Ps1Xml(string filePath, ConcurrentBag<string> errors)
92279227
#if UNIX
92289228
#region UnixStat
92299229

9230-
92319230
if (ExperimentalFeature.IsEnabled("PSUnixFileStat"))
92329231
{
92339232
typeName = @"System.IO.FileSystemInfo";

src/powershell/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ private static void AttemptExecPwshLogin(string[] args)
185185
// We can reuse this value later to prevent needing to call a .NET API
186186
// to generate our exec invocation.
187187

188-
189188
// We don't care about argc's value, since argv[0] must always exist.
190189
// Skip over argc, but remember where exec_path is for later
191190
executablePathPtr = IntPtr.Add(procargs, sizeof(int));

test/tools/WebListener/Controllers/DosController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public string Index()
2222

2323
Response.StatusCode = 200;
2424

25-
2625
StringValues dosType;
2726
if (Request.Query.TryGetValue("dosType", out dosType))
2827
{

0 commit comments

Comments
 (0)