Use build in automatic generated code detection: AnalysisContext.ConfigureGeneratedCodeAnalysis #5461
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: Performance
It takes too long.
Check if we can replace the in-house automatic generated code detection with AnalysisContext.ConfigureGeneratedCodeAnalysis from Roslyn.
According to the documentation:
Arguments for doing this change:
-- the Roslyn checks are most likely run anyway
-- we do expensive checks on our end and rely on caching to save time, but our caching needs thread synchronization (
ConcurrentDictionary
) for this to work which might slow down the analysis. Outside IDEs, the rules are executed concurrently.-- measurement is needed
The text was updated successfully, but these errors were encountered: