Enable SA1026 and fix noncompliance
"Code should not contain space after new or stackalloc keyword in implicitly typed array allocation"
This commit is contained in:
parent
14e0c96fd8
commit
3c02545066
|
@ -292,9 +292,6 @@
|
|||
<!-- Code should not contain multiple whitespace in a row -->
|
||||
<Rule Id="SA1025" Action="Hidden" />
|
||||
|
||||
<!-- Code should not contain space after new or stackalloc keyword in implicitly typed array allocation -->
|
||||
<Rule Id="SA1026" Action="Hidden" />
|
||||
|
||||
<!-- Use tabs correctly -->
|
||||
<Rule Id="SA1027" Action="Hidden" />
|
||||
|
||||
|
|
|
@ -1103,7 +1103,7 @@ namespace BizHawk.Client.Common
|
|||
new FilesystemFilter("Amstrad CPC", new string[0], devBuildExtraExts: new[] { "cdt", "dsk" }, devBuildAddArchiveExts: true),
|
||||
new FilesystemFilter("Sinclair ZX Spectrum", new[] { "tzx", "tap", "dsk", "pzx", "csw", "wav" }, addArchiveExts: true),
|
||||
new FilesystemFilter("Odyssey 2", new[] { "o2" }),
|
||||
new FilesystemFilter("Uzebox", new [] { "uze" }),
|
||||
new FilesystemFilter("Uzebox", new[] { "uze" }),
|
||||
FilesystemFilter.EmuHawkSaveStates
|
||||
);
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ namespace BizHawk.Client.Common.movie.import
|
|||
};
|
||||
|
||||
// Split up the sections of the frame.
|
||||
string[] sections = line.Split(new [] { "|" }, StringSplitOptions.RemoveEmptyEntries);
|
||||
var sections = line.Split(new[] { "|" }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (sections.Length != 2)
|
||||
{
|
||||
Result.Errors.Add("Unsupported input configuration");
|
||||
|
|
|
@ -64,7 +64,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
tsbViewStyle.SelectedIndex = 0;
|
||||
|
||||
lvCDL.AllColumns.Clear();
|
||||
lvCDL.AllColumns.AddRange(new []
|
||||
lvCDL.AllColumns.AddRange(new[]
|
||||
{
|
||||
new RollColumn { Name = "CDLFile", Text = "CDL File @", UnscaledWidth = 107, Type = ColumnType.Text },
|
||||
new RollColumn { Name = "Domain", Text = "Domain", UnscaledWidth = 126, Type = ColumnType.Text },
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
DisplayName = $"Player {controller}",
|
||||
Size = new Size(174, 74),
|
||||
Buttons = new []
|
||||
Buttons = new[]
|
||||
{
|
||||
ButtonSchema.Up(23, 15, controller),
|
||||
ButtonSchema.Down(23, 36, controller),
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace BizHawk.Client.EmuHawk.tools.VirtualPads.schema
|
|||
return new ConsoleSchema
|
||||
{
|
||||
Size = new Size(160, 45),
|
||||
Buttons = new []
|
||||
Buttons = new[]
|
||||
{
|
||||
new ButtonSchema(8, 18, "LidOpen") { DisplayName = "Lid Open" },
|
||||
new ButtonSchema(68, 18, "LidClose") { DisplayName = "Lid Close" }
|
||||
|
|
|
@ -68,7 +68,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBA
|
|||
throw;
|
||||
}
|
||||
|
||||
InputCallbacks = new MemoryBasedInputCallbackSystem(this, "System Bus", new [] { 0x4000130u });
|
||||
InputCallbacks = new MemoryBasedInputCallbackSystem(this, "System Bus", new[] { 0x4000130u });
|
||||
}
|
||||
|
||||
public IEmulatorServiceProvider ServiceProvider { get; }
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
|
|||
Rsp = RspType.Rsp_Hle;
|
||||
DisableExpansionSlot = true;
|
||||
|
||||
Controllers = new []
|
||||
Controllers = new[]
|
||||
{
|
||||
new N64ControllerSettings(),
|
||||
new N64ControllerSettings { IsConnected = false },
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SubGBHawk
|
|||
"",
|
||||
isPorted: false,
|
||||
isReleased: true)]
|
||||
[ServiceNotApplicable(new [] { typeof(IDriveLight) })]
|
||||
[ServiceNotApplicable(new[] { typeof(IDriveLight) })]
|
||||
public partial class SubGBHawk : IEmulator, IStatable, IInputPollable,
|
||||
ISettable<GBHawk.GBHawk.GBSettings, GBHawk.GBHawk.GBSyncSettings>
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SubNESHawk
|
|||
"",
|
||||
isPorted: false,
|
||||
isReleased: true)]
|
||||
[ServiceNotApplicable(new [] { typeof(IDriveLight) })]
|
||||
[ServiceNotApplicable(new[] { typeof(IDriveLight) })]
|
||||
public partial class SubNESHawk : IEmulator, IStatable, IInputPollable,
|
||||
ISettable<NES.NES.NESSettings, NES.NES.NESSyncSettings>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue