| Topic | Value |
|---|---|
| Id | REFL044 |
| Severity | Warning |
| Enabled | True |
| Category | ReflectionAnalyzers.SystemReflection |
| Code | GetCustomAttributeAnalyzer |
| IsDefinedAnalyzer |
Expected attribute type.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable REFL044 // Expected attribute type
Code violating the rule here
#pragma warning restore REFL044 // Expected attribute typeOr put this at the top of the file to disable all instances.
#pragma warning disable REFL044 // Expected attribute type[System.Diagnostics.CodeAnalysis.SuppressMessage("ReflectionAnalyzers.SystemReflection",
"REFL044:Expected attribute type",
Justification = "Reason...")]