When pointing sonar-scanner to our compilation_db.json
using sonar.cfamily.compile-commands=build/reports/compilation_db.json
we get the following error:
The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource build-wrapper
and setting the property "sonar.cfamily.build-wrapper-output", but it was not specified.
If you don't want to analyze C/C++/Objective-C files, then prevent them from being analyzed by setting the following properties:
sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-
Fully disabling analysis for c files is obviously not what we want. What are we missing?