Enable SA1507: Code should not contain multiple blank lines in a row (#14136)

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md
This commit is contained in:
xtqqczze 2020-11-20 11:17:45 +00:00 committed by GitHub
parent f14c76aab9
commit d92984106a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 4 deletions

View file

@ -1374,7 +1374,7 @@ dotnet_diagnostic.SA1505.severity = none
dotnet_diagnostic.SA1506.severity = none
# SA1507: Code should not contain multiple blank lines in a row
dotnet_diagnostic.SA1507.severity = none
dotnet_diagnostic.SA1507.severity = warning
# SA1508: Closing braces should not be preceded by blank line
dotnet_diagnostic.SA1508.severity = none

View file

@ -9227,7 +9227,6 @@ namespace System.Management.Automation.Runspaces
#if UNIX
#region UnixStat
if (ExperimentalFeature.IsEnabled("PSUnixFileStat"))
{
typeName = @"System.IO.FileSystemInfo";

View file

@ -185,7 +185,6 @@ namespace Microsoft.PowerShell
// We can reuse this value later to prevent needing to call a .NET API
// to generate our exec invocation.
// We don't care about argc's value, since argv[0] must always exist.
// Skip over argc, but remember where exec_path is for later
executablePathPtr = IntPtr.Add(procargs, sizeof(int));

View file

@ -22,7 +22,6 @@ namespace mvc.Controllers
Response.StatusCode = 200;
StringValues dosType;
if (Request.Query.TryGetValue("dosType", out dosType))
{