dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.95k stars 4.02k forks source link

support dynamic diagnostic analyzers #13644

Open heejaechang opened 8 years ago

heejaechang commented 8 years ago

currently IDE has namingstyle analyzers. http://source.roslyn.io/#Microsoft.CodeAnalysis.Features/Diagnostics/Analyzers/NamingStyles/NamingStyleDiagnosticAnalyzerBase.cs,11

these analyzers will create rules on the fly based on given options. this doesn't fit to current diagnostic analyzers which assumes those sets are known before-hand.

we need a way to support this in compiler diagnostic analyzer framework, otherwise, this should use other mechanism than diagnostic analyzer since it doesn't fit into the diagnostic analyzer architecture at all.

heejaechang commented 8 years ago

open the issue to track on design decision.