Enable SA1517 and fix noncompliance (except in Cores)

"Code should not contain blank lines at start of file"
This commit is contained in:
YoshiRulz 2024-07-08 01:17:05 +10:00
parent 39b69641a6
commit 9a82dfd05f
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
5 changed files with 3 additions and 8 deletions

View File

@ -562,7 +562,7 @@ dotnet_diagnostic.SA1515.severity = silent
# Elements should be separated by blank line
dotnet_diagnostic.SA1516.severity = silent
# Code should not contain blank lines at start of file
dotnet_diagnostic.SA1517.severity = silent
dotnet_diagnostic.SA1517.severity = warning
# Use line endings correctly at end of file
dotnet_diagnostic.SA1518.severity = silent
# Braces should not be omitted from multi-line child statement

View File

@ -1,4 +1,3 @@
using System.Collections.Generic;
namespace BizHawk.Emulation.Common

View File

@ -5,7 +5,7 @@
<Import Project="../MainSlnCommon.props" />
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>$(NoWarn);CA1806;CA1825;CA2214;MA0060;MA0084;MA0090;MA0140;SA1100;SA1120;SA1129;SA1137;SA1205;SA1208;SA1400;SA1514</NoWarn>
<NoWarn>$(NoWarn);CA1806;CA1825;CA2214;MA0060;MA0084;MA0090;MA0140;SA1100;SA1120;SA1129;SA1137;SA1205;SA1208;SA1400;SA1514;SA1517</NoWarn>
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>

View File

@ -1,4 +1,3 @@
namespace BizHawk.Emulation.DiscSystem
{
/// <summary>

View File

@ -1,9 +1,6 @@
//TODO - generate correct Q subchannel CRC
namespace BizHawk.Emulation.DiscSystem
{
//TODO - generate correct Q subchannel CRC
/// <summary>
/// generates lead-out sectors according to very crude approximations