When defining custom attributes, https://learn.microsoft.com/en-us/dotnet/api/system.attributeusageattribute[AttributeUsageAttribute] must be used to indicate where the attribute can be applied. This will:
* indicate how the attribute can be used
* prevent it from being used at invalid locations
== How to fix it
=== Code examples
==== Noncompliant code example
[source,csharp,diff-id=1,diff-type=noncompliant]
----
public sealed class MyAttribute : Attribute // Noncompliant - AttributeUsage is missing