Hi Community, I’ve been getting longer-longer scan time when using sonar-scanner CLI to scan my ObjC and swift project, is there any option to scan only diff file?
What version of SonarQube are you using?
Hi , We’re using SonarScanner 126.96.36.19906.
We’ve also experience some hangs / missing logs during our scan, is this some kind of bugs?
While that is the version of the scanner you’re using, I’m interseted in the version of SonarQube (it should be located in the footer of your SonarQube instance).
Hi I dont see any SonarQube version at the footer of the log, please advise
I’m using sonarcloud for this.
Since you put it in the “SonarQube” category I got confused.
By default, SonarCloud is already using a cache to reduce the analysis time and make sure files don’t always have be reanalyzed.
The C/C++/Objective-C analyzer automatically caches the analysis results on the server. The cached analysis results speed up subsequent analyses by analyzing the only things that have changed between the two analyses.
- For branch analysis, an analysis cache is stored on the server per branch.
- For pull request analysis, the cache of the base branch is used and not persisted.
- If no cache is found, the cache of the Main branch is used.
You could also try increasing the number of threads dedicated to the analysis.
You also mentioned in your original post:
When did this start?
Hi, sorry for the late reply. It’s been starting since there’s an update to the sonar-scanner CLI.