Fix CA1852

This commit is contained in:
RoosterDragon
2023-03-13 18:49:21 +00:00
committed by Pavel Penev
parent 277699cbd5
commit f4af5c1764
310 changed files with 510 additions and 507 deletions

View File

@@ -16,7 +16,7 @@ using OpenRA.Mods.Common.Traits;
namespace OpenRA.Mods.Common.UtilityCommands
{
class CheckMissingSprites : IUtilityCommand
sealed class CheckMissingSprites : IUtilityCommand
{
string IUtilityCommand.Name => "--check-missing-sprites";

View File

@@ -18,7 +18,7 @@ using OpenRA.Mods.Common.Lint;
namespace OpenRA.Mods.Common.UtilityCommands
{
class CheckYaml : IUtilityCommand
sealed class CheckYaml : IUtilityCommand
{
string IUtilityCommand.Name => "--check-yaml";

View File

@@ -18,7 +18,7 @@ using OpenRA.Primitives;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ConvertSpriteToPngCommand : IUtilityCommand
sealed class ConvertSpriteToPngCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--png";

View File

@@ -14,7 +14,7 @@ using System.Linq;
namespace OpenRA.Mods.Common.UtilityCommands
{
class CreateManPage : IUtilityCommand
sealed class CreateManPage : IUtilityCommand
{
string IUtilityCommand.Name => "--man-page";

View File

@@ -17,7 +17,7 @@ using OpenRA.Primitives;
namespace OpenRA.Mods.Common.UtilityCommands
{
class DebugChromeRegions : IUtilityCommand
sealed class DebugChromeRegions : IUtilityCommand
{
string IUtilityCommand.Name => "--debug-chrome-regions";

View File

@@ -15,7 +15,7 @@ using OpenRA.Graphics;
namespace OpenRA.Mods.Common.UtilityCommands
{
class DumpSequenceSheetsCommand : IUtilityCommand
sealed class DumpSequenceSheetsCommand : IUtilityCommand
{
static readonly int[] ChannelMasks = { 2, 1, 0, 3 };

View File

@@ -19,7 +19,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.UtilityCommands
{
// See https://emmylua.github.io/annotation.html for reference
class ExtractEmmyLuaAPI : IUtilityCommand
sealed class ExtractEmmyLuaAPI : IUtilityCommand
{
string IUtilityCommand.Name => "--emmy-lua-api";

View File

@@ -15,7 +15,7 @@ using System.Linq;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ExtractFilesCommand : IUtilityCommand
sealed class ExtractFilesCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--extract";

View File

@@ -15,7 +15,7 @@ using OpenRA.Scripting;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ExtractLuaDocsCommand : IUtilityCommand
sealed class ExtractLuaDocsCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--lua-docs";

View File

@@ -14,7 +14,7 @@ using System.Linq;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ExtractSettingsDocsCommand : IUtilityCommand
sealed class ExtractSettingsDocsCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--settings-docs";

View File

@@ -20,7 +20,7 @@ using OpenRA.Primitives;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ExtractSpriteSequenceDocsCommand : IUtilityCommand
sealed class ExtractSpriteSequenceDocsCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--sprite-sequence-docs";

View File

@@ -18,7 +18,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ExtractTraitDocsCommand : IUtilityCommand
sealed class ExtractTraitDocsCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--docs";

View File

@@ -19,7 +19,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ExtractWeaponDocsCommand : IUtilityCommand
sealed class ExtractWeaponDocsCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--weapon-docs";

View File

@@ -17,7 +17,7 @@ using OpenRA.Scripting;
namespace OpenRA.Mods.Common.UtilityCommands
{
// See https://studio.zerobrane.com/doc-api-auto-complete for reference
class ExtractZeroBraneStudioLuaAPI : IUtilityCommand
sealed class ExtractZeroBraneStudioLuaAPI : IUtilityCommand
{
string IUtilityCommand.Name => "--zbstudio-lua-api";

View File

@@ -14,7 +14,7 @@ using OpenRA.FileSystem;
namespace OpenRA.Mods.Common.UtilityCommands
{
class GetMapHashCommand : IUtilityCommand
sealed class GetMapHashCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--map-hash";

View File

@@ -16,7 +16,7 @@ using OpenRA.Mods.Common.FileFormats;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ListInstallShieldCabContentsCommand : IUtilityCommand
sealed class ListInstallShieldCabContentsCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--list-installshield-cab";

View File

@@ -15,7 +15,7 @@ using OpenRA.Mods.Common.FileFormats;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ListMSCabContentsCommand : IUtilityCommand
sealed class ListMSCabContentsCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--list-mscab";

View File

@@ -13,7 +13,7 @@ using OpenRA.FileSystem;
namespace OpenRA.Mods.Common.UtilityCommands
{
class RefreshMapCommand : IUtilityCommand
sealed class RefreshMapCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--refresh-map";

View File

@@ -15,7 +15,7 @@ using OpenRA.FileFormats;
namespace OpenRA.Mods.Common.UtilityCommands
{
class ReplayMetadataCommand : IUtilityCommand
sealed class ReplayMetadataCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--replay-metadata";

View File

@@ -13,7 +13,7 @@ using System;
namespace OpenRA.Mods.Common.UtilityCommands
{
class Rgba2Hex : IUtilityCommand
sealed class Rgba2Hex : IUtilityCommand
{
string IUtilityCommand.Name => "--rgba2hex";
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
class Argb2Hex : IUtilityCommand
sealed class Argb2Hex : IUtilityCommand
{
string IUtilityCommand.Name => "--argb2hex";

View File

@@ -18,7 +18,7 @@ using OpenRA.Mods.Common.UpdateRules;
namespace OpenRA.Mods.Common.UtilityCommands
{
class UpdateMapCommand : IUtilityCommand
sealed class UpdateMapCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--update-map";

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
using YamlFileSet = List<(IReadWritePackage, string, List<MiniYamlNode>)>;
class UpdateModCommand : IUtilityCommand
sealed class UpdateModCommand : IUtilityCommand
{
string IUtilityCommand.Name => "--update-mod";