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
19.07k stars 4.04k forks source link

Full solution analysis only for certain analyzers #40951

Open kindermannhubert opened 4 years ago

kindermannhubert commented 4 years ago

Is there any way to tell some analyzer that it should run only for open documents (regardless of "Full solution analysis" settings)?

Here's our setup:

Rationale why we would appreciate this feature:

What do you think about it? Or is there any completely different approach to handle analyzers that would solve our problems? The main thing is that we want some analyzers to be enforced and want to know about its diagnostics before putting our changes to version control system.

Thanks for the answers!

jinujoseph commented 4 years ago

cc @mavasani