From 01eaa6b228623f6e8f505b9347f7c3c067733891 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Sun, 12 Mar 2023 12:03:11 +0000 Subject: [PATCH] Fix CA1064 --- .editorconfig | 3 +++ OpenRA.Mods.Common/Commands/DevCommands.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 99652ef89f..62a626e798 100644 --- a/.editorconfig +++ b/.editorconfig @@ -634,6 +634,9 @@ dotnet_diagnostic.CA1050.severity = warning # Do not hide base class methods. dotnet_diagnostic.CA1061.severity = warning +# Exceptions should be public. +dotnet_diagnostic.CA1064.severity = warning + # Override 'Equals' when implementing 'IEquatable'. dotnet_diagnostic.CA1067.severity = warning diff --git a/OpenRA.Mods.Common/Commands/DevCommands.cs b/OpenRA.Mods.Common/Commands/DevCommands.cs index 5e5ac3bfcc..2b7b9b32fd 100644 --- a/OpenRA.Mods.Common/Commands/DevCommands.cs +++ b/OpenRA.Mods.Common/Commands/DevCommands.cs @@ -255,6 +255,6 @@ namespace OpenRA.Mods.Common.Commands } [Serializable] - class DevException : Exception { } + public class DevException : Exception { } } }