New lines of code not showing for component level but showing in the project level

sonarqube

(sunitha) #1

Our project level code is organized as follows:

E:
   Comp1
   Comp2
   ...
   CompN

When we upload our component level report to sonar server we are not seeing any code coverage for new lines of code.
But When we upload our project level report to sonar server(directory structure remains same as above) then we are seeing the code coverage % on the new code.

Plugin version details:

Sonar Server Version : 6.1
Plugins in Component Level Server:
C++ (Community) 0.9.7 (cxx)
SonarCFamily 4.9.0.8153 (cpp)
Git 1.2 (scmgit)

Log Details:

12:29:45.029 DEBUG: Language of file 'suppl/OvReqCheck/Windows/StdAfx.cpp' is detected to be 'c++'
12:29:45.029 DEBUG: Language of file 'suppl/OvReqCheck/Windows/StdAfx.h' is detected to be 'c++'
12:29:45.029 INFO: 4684 files indexed
12:29:45.169 INFO: Quality profile for c++: Sonar way
12:29:45.403 DEBUG: Code colorizer, supported languages: cs,grvy
12:29:46.573 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'JaCoCoSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'JaCoCoItSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'JaCoCoOverallSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c SquidSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c RatsSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c CppCheckSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c PCLintSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c DrMemorySensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c CompilerSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c VeraxxSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c ValgrindSensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c ClangTidySensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c ClangSASensor' skipped because there is no related file in current project
12:29:46.589 DEBUG: 'c ExternalRulesSensor' skipped because there is no related file in current project
12:29:46.604 DEBUG: 'c CoverageSensor' skipped because there is no related file in current project
12:29:46.604 DEBUG: 'Web' skipped because there is no related file in current project
12:29:46.604 DEBUG: 'GoMetaLinter issues loader sensor' skipped because there is no related file in current project
12:29:46.604 DEBUG: 'Go Coverage' skipped because there is no related file in current project
12:29:46.604 DEBUG: 'Go test JUnit loader sensor' skipped because there is no related file in current project
12:29:46.604 DEBUG: 'JavaScript Squid Sensor' skipped because there is no related file in current project
12:29:46.604 DEBUG: Sensors : Lines Sensor -> SCM Sensor -> CxxSquidSensor -> CxxRatsSensor -> CxxXunitSensor -> CxxCoverageSensor -> CxxCppCheckSensor -> CxxPCLintSensor -> CxxDrMemorySensor -> CxxCompilerSensor -> CxxVeraxxSensor -> CxxValgrindSensor -> CxxExternalRulesSensor -> Unit Test Results Import -> XmlFileSensor -> c XunitSensor -> Unit Test Results Import -> Go Highlighter Sensor -> Go Metrics Sensor -> Zero Coverage Sensor -> Code Colorizer Sensor -> CPD Block Indexer
12:29:46.604 INFO: Sensor Lines Sensor
12:29:46.994 INFO: Sensor Lines Sensor (done) | time=390ms
12:29:46.994 INFO: Sensor SCM Sensor
12:29:50.520 INFO: SCM provider for this project is: git
12:29:50.520 INFO: 105 files to be analyzed
12:29:50.598 DEBUG: readpipe [git, --version],C:\Git\cmd
12:29:50.645 DEBUG: readpipe may return 'git version 2.16.2.windows.1'
12:29:50.645 DEBUG: remaining output:

12:29:50.660 DEBUG: readpipe [git, config, --system, --edit],C:\Git\cmd
12:29:50.770 DEBUG: readpipe may return 'C:/Git/mingw64/etc/gitconfig'
12:29:50.770 DEBUG: remaining output:

(G Ann Campbell) #2

Hi,

It’s difficult to believe you’re using the Cxx plugin and SonarCFamily side by side. In fact, your log indicates you’re using

You should ask there about problems with it.

Ann