Closed bkoelman closed 6 years ago
To get these stats, add <ReportAnalyzer>true</ReportAnalyzer>
to the global section of a .csproj file.
The proposed fix does not help. Dataflow analysis probably already runs for all identifiers in scope at once, returning results from cache on subsequent requests.
Analyzer
AV1568: DoNotAssignToParametersAnalyzer
Repro steps
Results of running the analyzers on its own codebase:
The output above shows that
DoNotAssignToParametersAnalyzer
takes a lot of time. It runs (expensive) dataflow analysis on the method body for each parameter individually. We should register on method instead, then run the analysis once and inspect results for each parameter.