I tried to parse sonar scanner output to detect progress while writing script for running scanner on our Continous Integration.
I look what is stored in compile_commands.json that is fed to Sonar scanner.
Then I look what sonar scanned by looking at [pool--thread-] output.
But it seems some files are missing in the output, also sometimes I cannot find them in the report on the server.
I know that some are ignored as they are generated, but still a lot is missing.
Is it possible that sonar scanner does not print all files that are scanned ?
Maybe sonar scanner could present current progress of scan ?
Because scan takes so much time I would like to see the scan progress.
Our main project, which is also the biggest is written in C++.
Sonar Scanner is fed with compile_commands.json generated from CMake.
What I was trying to accomplish is to verify which files from compile_commands.json are scanned (showed in sonar scanner log), thus generating an approximate progress.
You might try enabling debug logging (-Dsonar.verbose=true) but I don’t think that’s going to work for you. That logging was never intended for this kind of use, so we’ve never bothered to make the file listing thorough (although IIRC, you will see a full list from the last sensor: SCM).
Again, this logging was never intended for what you’re trying to do. If you’re not finding anything useful in the debug log, then I don’t see how this can go any further.