Enable SA1506 and fix noncompliance

"Element documentation header should be preceded by blank line"
also fixes typo in rule config from c93a0f9d1
This commit is contained in:
YoshiRulz 2024-07-08 01:13:06 +10:00
parent e61790d3dd
commit 39b69641a6
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 10 additions and 9 deletions

View File

@ -542,7 +542,7 @@ dotnet_diagnostic.SA1503.severity = silent
# Opening braces should not be followed by blank line
dotnet_diagnostic.SA1505.severity = silent
# Element documentation headers should not be followed by blank line
dotnet_diagnostic.SA1506.severity = silent
dotnet_diagnostic.SA1506.severity = warning
# Code should not contain multiple blank lines in a row
dotnet_diagnostic.SA1507.severity = silent
# Closing braces should not be preceded by blank line
@ -556,7 +556,7 @@ dotnet_diagnostic.SA1512.severity = silent
# Closing brace should be followed by blank line
dotnet_diagnostic.SA1513.severity = silent
# Element documentation header should be preceded by blank line
dotnet_diagnostic.SA1514.severity = warn
dotnet_diagnostic.SA1514.severity = warning
# Single-line comment should be preceded by blank line
dotnet_diagnostic.SA1515.severity = silent
# Elements should be separated by blank line

View File

@ -1224,14 +1224,14 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
/// </summary>
public class CharacterLine
{
#if false
/// <summary>
/// Screenmode is defined at each HSYNC (start of a new character line)
/// Therefore we pass the mode in via constructor
/// </summary>
//public CharacterLine(int screenMode)
//{
//ScreenMode = screenMode;
//}
public CharacterLine(int screenMode)
=> ScreenMode = screenMode;
#endif
public int ScreenMode = 1;
public List<Phase> Phases = new List<Phase>();

View File

@ -6,9 +6,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
/// <summary>
/// describes a 24C01 or 24C02 as connected to a BANDAI-FCG
/// </summary>
// http://pdf1.alldatasheet.com/datasheet-pdf/view/56094/ATMEL/24C01.html 24C01
// http://www.atmel.com/Images/doc0180.pdf 24C02 and others
/// <remarks>
/// <see href="http://pdf1.alldatasheet.com/datasheet-pdf/view/56094/ATMEL/24C01.html">24C01</see><br/>
/// <see href="http://www.atmel.com/Images/doc0180.pdf">24C02 and others</see>
/// </remarks>
public sealed class SEEPROM
{
/// <summary>