Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: zip, Docker, Helm
- what are you trying to achieve
- what have you tried so far to achieve this
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
Version :
Sonarqube : Sonarqube cmmunity Edition 10.6
Scanner : Sonar-scanner-8.0.0.97025-net-framework
Plugin : sonarqube-community-branch-plugin-1.21.0.jar
Sonarqube Deployed : Zip
System information : Operating system:windows server 2022
Java version : jdk17
Database provider/version : MSSQL 2017
Code Line C# 600k
Hi
I tried to use Sonarqube 10.6 for C# scanning, and the scanning speed was slow (one build and upload took about 30 minutes)
Is there any difference in scanning speed between Cmmunity version and Developer version?
Or are there any parameters that can speed up scanning?
The following are the parameters I set up
SonarScanner.MSBuild.exe begin /k:sonarqube_name /v:Version /d:sonar.host.url="http://IP:9000" /d:sonar.token=token /d:sonar.branch.name=branch_name /d:sonar.cs.nunit.reportsPaths=UNIT_TEST.xml /d:sonar.cs.dotcover.reportsPaths=dotCover.html /d:sonar.exclusions=dotCover/** /d:sonar.scanner.scanAll=false
MSBuild.exe /t:Rebuild
nunit3-console.exe --result=UNIT_TEST.xml coverage_name
dotCover.exe analyse /ReportType=HTML /Output=dotCover.html /TargetExecutable=nunit3-console.exe /TargetWorkingDir=. /TargetArguments=coverage_name
SonarScanner.MSBuild.exe begin /k:sonarqube_name /v:Version /d:sonar.host.url="http://IP:9000" /d:sonar.token=token /d:sonar.branch.name=branch_name