How to execute SonarQube on a project that just has headers

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) SonarQube Enterprise Edition 10.7 and Sonar Scanner 5.0.1.3006
  • how is SonarQube deployed: zip
  • We are trying to have a library like JSMN get executed through SonarQube. How can we get the compile commands so that SonarQube will be able to analyze just the header files?
  • Trying to build a compile commands JSON by hand and Sonar Scanner complains that there is no C/C++/Objective C files within the compile command

Hey there.

This sounds like a great use-case for AutoConfig which doesn’t require a build/compile commands.

Here’s my successful local analysis of the repo you shared using AutoConfig!