Hi,
We are using SonarQube Enterprise license edition with 10M LOC limit.
Details:
SonarQube Version: 9.9.2.77730
Database: Microsoft SQL Server
Database: Version 15.00.4322
As part of our Static code analysis, We are trying to analyze CPP code by following below official document.
What we achieved:
- We just completed a small POC (CLI Scan) as per given example project (GitHub - sonarsource-cfamily-examples/code: C++ repository with example project that is build and analyzed on large matrix of operating systems, build tools and ILMs.)
- We followed every step as per given instructions in given official document.
- till now we are able to build the code by using build wrapper command and able to scan the cpp code.
- this was possible whenever we placed the main.cpp(used from example project) file in our source code folder.
what we are expecting:
- Is main.cpp file is required in terms of clean build.
- Is there any way to build the all cpp code which is existed in different folder locations
- Since we have cpp code in different folder locations, we have to build the code separately and as expected bw-output folder will create in respective folder sections, So how we can map the bw-output folder path in sonar.project.properties file for multiple bw-output folder?
Issues till now:
- Sonar Scan execution was successful but we are not able to find bugs, codesmells and other issues in code, but only we are able to find duplications in that(see image).
Kindly analyze this question and revert back for any information required