Assembly and module attribute are not analyzed
Closed this issue · 1 comments
realvizu commented
E.g.:
[assembly: A.AllowedAttributeWithTypeArg(typeof(B.ForbiddenType))]
[module: A.AllowedAttributeWithTypeArg(typeof(B.ForbiddenType))]
[assembly: B.ForbiddenAttribute("foo")]
[module: B.Forbidden("foo")]
realvizu commented
Assembly and module attributes are not analyzed because there's no enclosing type for them.
To fix it they should be recognized as used in the global namespace.
But fixing it would probably cause more trouble than benefit.
To be revised if it turns out that someone needs it.