I am evaluating SonarQube and got a test license from Sonar for the Developer Edition. It is a C++ project using MinGW. I set up a local SonarQube server on my windows machine with the embedded database and use SonarLint in Eclipse. My problem is that the issues I get in SonarQube are different then in SonarLint.
I checked some similar questions in stackoverflow and groups.google but could not get a running setup.
In Sonar Lint I get 83 issues
In Sonar Qube I get 12 issues
This is installed:
sonar-scanner-cli-3.2.0.1227-windows
sonarqube-6.7.4
SonarCFamilyLanguages Code Analyzer for C, C++, Objective-C 5.1 (build 10083)installed
+ several other languages
Windows 10 64Bit
When uploading the data with âsonar-scanner.bat -Xâ to the server I donât see ERROR nor WARNING in the results.
This is the command line pattern of eclipse:
build-wrapper-win-x86-64.exe --out-dir bw-output ${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}
This is the structure of my project:
..\DoorApplication\02_CrossDev\
+ Unittest
+ TestHelpers
+ Src
sonar-project.properties
.cproject
.project
..\DoorApplication\01_Source\
+ Framweork
+ HAL
+ Interfaces
This is the sonar-project.properties file:
sonar.host.url=http://172.20.37.69:9000
sonar.projectName=Test project 1
sonar.projectKey=TestProject1_Key
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.projectBaseDir=../
sonar.cfamily.build-wrapper-output=Debug/bw-output
sonar.sources=01_Source, 02_CrossDev
Letâs examine just one example:
There is a class 02_CrossDev/TestHelpers/TCPServer/Socket.cpp.
In SonarLint I see 8 major issues, 8 days ago.
In SonarQube I see this file, 168 lines of code but no issues.
In the sonar-scanner.bat output I see 11:19:30.913 DEBUG: â02_CrossDev\TestHelpers\TCPServer\Socket.cppâ indexed with language âcppâ
Has somebody an idea whatâs wrong?
Thanks for any help.