Scanner/Wrapper dosn't analyze all the files compiled via make

SonarQube Version 7.9.1.27448
Wrapper Version 6.3
SonarScanner Version 4.2

We actually try to integrate SonarQube C wrapper/scanner in our jenkins buildprocess. So far the call of the wrapper and the scanner work, but if we look in the results of the analysis and check the directories or the files which are analyzed, then some of the directories and files are missing.

When we follow the output of the make in the command window, then we see that the files are compiled.

How can we find out why these files are not in the result of the analyze?

Best regards

Volker

Hi @vokuit00,

I would suggest you to update the SonarCFamily analyzer to its latest version 6.6, and use its latest 6.6 build-wrapper version.

The scanner analyze the files which were compiled:

  • are you running a full clean build?
  • are all files compiled with the same compiler?
  • are you on Windows or Linux?
1 Like

Where can i get a SonarScanner Version 6.6? In the documentation of SonarQube 8.1 the SonarScanner Version was already listed as 4.2 and not as 6.6.

Best regards,

Volker

I was not talking about sonar-scanner but about the SonarCFamily C/C++ analyzer, you can update it to its latest version in the AdministrationMarketplace page.

With the actual SonarCFamily C/C++ and the new wrapper it seems to work without a problem.

Thanks for your help

Volker

Hi @vokuit00,

does it mean that with SonarCFamily C/C++ 6.6 and build-wrapper 6.6 it works ok? Could you just confirm?

Yes, after the Update to 6.6 at the Wrapper and the SonarCFamily C/C++ all the files included in the make process are analyzed.

Best regards

Volker

1 Like

Hi @vokuit00,

ok, thank you for the update.