Enable CA1018 and fix noncompliance

"Mark attributes with AttributeUsageAttribute"
This commit is contained in:
YoshiRulz 2020-06-18 03:40:32 +10:00
parent 7f99dd95d6
commit 16d1782c9e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 1 additions and 3 deletions

View File

@ -32,9 +32,6 @@
<!-- Mark assemblies with assembly version -->
<Rule Id="CA1016" Action="Hidden" />
<!-- Mark attributes with AttributeUsageAttribute -->
<Rule Id="CA1018" Action="Hidden" />
<!-- Enum Storage should be Int32 -->
<Rule Id="CA1028" Action="Hidden" />

View File

@ -118,6 +118,7 @@ namespace BizHawk.Client.Common
}
}
[AttributeUsage(AttributeTargets.Class)]
public sealed class ExternalToolEmbeddedIconAttribute : Attribute
{
/// <remarks>The full path, including the assembly name.</remarks>