Enable RCS1043 and fix noncompliance

"Remove 'partial' modifier from type with a single part"
This commit is contained in:
YoshiRulz 2025-01-29 22:29:59 +10:00
parent 8332a6bd5e
commit fe7ecceb64
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
4 changed files with 5 additions and 3 deletions

View File

@ -397,6 +397,8 @@ dotnet_diagnostic.MEN018.severity = warning
## Roslynator.Analyzers rules
# Remove 'partial' modifier from type with a single part
dotnet_diagnostic.RCS1043.severity = warning
# Avoid locking on publicly accessible instance
dotnet_diagnostic.RCS1059.severity = silent
# Avoid empty catch clause that catches System.Exception

View File

@ -759,7 +759,7 @@ namespace BizHawk.Common
}
}
private ref partial struct ValueListBuilder<T>
private ref struct ValueListBuilder<T>
{
private Span<T> _span;
private T[]? _arrayFromPool;

View File

@ -37,7 +37,7 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
/// Datasheet: {none}
///
/// </summary>
public abstract partial class CRTC : IPortIODevice
public abstract class CRTC : IPortIODevice
{
/// <summary>
/// Instantiation helper

View File

@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
/// The +2 is almost identical to the 128k from an emulation point of view
/// There are just a few small changes in the ROMs
/// </summary>
public partial class ZX128Plus2 : ZX128
public sealed class ZX128Plus2 : ZX128
{
/// <summary>
/// Main constructor