- versions used : 8.9 Developer Edition
- Azure DevOps, Self-Hosted agents
We have several dotnet core builds which take long time in both build and test. This doesn’t happen for all, and the agents are the same along with their tasks (using same task group).
For example, we have a repository with with around 14k lines and with SonarQube.
Without SonarQube it takes:
test 1m 47s
build 6m 21s
test 2m 52s
Now, I understand from other posts here that some rules can cause this, so we can add a flag which outputs the analyzers execution time.
Below several outputs of this from build.
Time (s) % Analyzer 36.343 71 SonarAnalyzer.CSharp, Version=220.127.116.11, Culture=neutral 10.213 20 SonarAnalyzer.Rules.CSharp.CbdeHandlerRule 4.065 7 SonarAnalyzer.Rules.SymbolicExecution.SymbolicExecutionRunner Time (s) % Analyzer 36.271 75 SonarAnalyzer.CSharp, Version=18.104.22.168, Culture=neutral, 9.680 20 SonarAnalyzer.Rules.CSharp.CbdeHandlerRule 3.839 7 SonarAnalyzer.Rules.SymbolicExecution.SymbolicExecutionRunner
What can I do to solve the issue? If the solution is to disable rules, how can I find the rules in Sonar and disable them? They don’t have the above names.