Issue setting up CFamily analysis

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?

Hi @joel ,

what version of SonarQube are you using? Compilation Database support was introduced in SonarQube 9.0, it seems like you are in an older version.

A post was split to a new topic: Issue analyzing Objective-C project

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.