Skip cfamily analysis if 0 C/C++/Objective-C files were analyzed


we are running SonarQube on a mixed C++ / Python project hosted on BitBucket and built on Bamboo. Since our project is very large, we have “Enable incremental mode using the diff of pull requests (Bitbucket Server)” enabled in the Sonar Scanner Bamboo task to reduce build time.

If there is only a change to a .py or .h file, the scanner fails with the message “The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed.” Since we have “Fail build if the task execution result in error” enabled, our builds fail if there was no change in a .cpp file. Is there any way to tell the cfamily plugin or sonar scanner that this is not a task execution error?

SonarQube Enterprise Edition Version 9.5
Scanner version:
CFamily plugin version:


Hey there.

SonarQube, generally, analyzes all files on each run whether or not they have changed. The Mibex integration tries to work around this by adjusting inclusions/exclusions, but it’s not officially supported. If that integration isn’t working as expected, you should reach out to them for support.

Hey Colin,

thanks for the quick reply. I will contact Mibex. This topic may be closed.