Continue after exception in scanning

SonarQube 9.9 scanning C++ code

I have a fairly large code base with over 50k files and it takes close to 10 hours to scan it all


If the scanner encounters an error then it exits.

17:37:57.674742 ERROR Exception in thread pool-3-thread-8
17:37:57.675823 ERROR com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0:

I then have to exclude the file and repeat the scan and if it fails on a different file I have to do it again, and again …

Is there a way to run through to the end and give me a list of all the exceptions and then I can do one fix and repeat? Indeed, can it run to the end and just leave out the missing files?

hi @PhilipMorrisJones,

I will send you a PM.


Abbas, thanks for the PM. Can I share it here for the community?

@PhilipMorrisJones the Reproducer zip contains sensitive information about your codebase, so you should share it in the PM to keep it private.

For the internal option, it is internal, changes regularly, and we would like to keep it private to keep track of the use cases before considering making it an official property. Please avoid sharing it publicly.


1 Like

Hi @PhilipMorrisJones,

Are you willing to share the reproducer zip?