I play with the creation of an analyzer for Roslyn. The one I do is a diagnostic that finds methods too long. I would like to do everything that is considered "too long", customizable, preferably one configuration for the entire solution or project. What would be the best way to do this?
The only option I have in mind is to look for an assembly for a specific configuration attribute. This will require an attribute for each project in the solution. It also requires the diagnostic user to reference a diagnostic-specific library that defines this attribute.
This is a good idea, and what are the other options?
source
share