You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the same as #99 which was then solved by the writer to make all id's unique.
I ran into this again with another Analyzer.
Looking at the Roslyn analyzer they also use multiple DiagnosticsDescriptors with the same Id, just with different message/title.
See:
So I think the Unique test in RoslynAssert.cs VerifyAnalyzerSupportsDiagnostic should be removed.
Currently ExpectedDiagnostic only works on the RuleId, maybe it should work on DiagnosticDescriptor instead which then needs to be one listed in the SupportedDiagnostics.
The text was updated successfully, but these errors were encountered:
This is the same as #99 which was then solved by the writer to make all id's unique.
I ran into this again with another Analyzer.
Looking at the Roslyn analyzer they also use multiple DiagnosticsDescriptors with the same Id, just with different message/title.
See:
There are several others.
So I think the Unique test in RoslynAssert.cs
VerifyAnalyzerSupportsDiagnostic
should be removed.Currently
ExpectedDiagnostic
only works on the RuleId, maybe it should work onDiagnosticDescriptor
instead which then needs to be one listed in theSupportedDiagnostics
.The text was updated successfully, but these errors were encountered: