C++ plugin
I am also getting the same issue. Reports gets generated fine; runner reads
the file, process it and deletes it; but i don't see anything in SONAR
dashboard.
Here are the details:
CppCheck1.54 (also tried 1.59)
Sonar 3.5.1
Sonar runner 2.2
In sonar quality profile cppcheck rules are all active
Sonar runner Properties:
sonar.projectKey=my:TCSMainlineCommon2
sonar.projectName=TCSMainlineCommon2
sonar.projectVersion=2.2
sonar.projectDescription=TCS Mainline Common
sonar.sources=C:/Projects/Travel/Platform/Travel/TCS/_mainline/Common
sonar.working.directory=C:/Projects/Travel/Platform/Travel/TCS/reports
sonar.cxx.suffixes.sources=cpp
sonar.cxx.suffixes.headers=h
sonar.cxx.cppcheck.reportPath=cppcheck-result-*.xml
#sonar.cxx.cppncss.reportPath=cppncss-result-*.xml
Sonar runner details:
Sonar Runner 2.2
Java 1.7.0_13 Oracle Corporation (64-bit)
Windows 7 6.1 amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file:
C:\DevEnv\ZippedInstall\sonar-runner-2.2\conf\sonar-runner.properties
INFO: Project configuration file: NONE
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: C:\Projects\Travel\Platform\Travel\TCS\reports
INFO: Sonar Server 3.5.1
12:22:53.042 INFO - Load batch settings
12:22:53.116 INFO - User cache: C:\Users\ns185051\.sonar\cache
12:22:53.119 INFO - Install plugins
12:22:54.029 INFO - ------------- Executing Project Scan
12:22:54.430 INFO - Install JDBC driver
12:22:54.433 INFO - Apply project exclusions
12:22:54.438 INFO - Create JDBC datasource for
jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
12:22:54.733 INFO - Initializing Hibernate
12:22:57.607 INFO - ------------- Inspecting TCSMainlineCommon2
12:22:57.611 INFO - Load module settings
12:22:58.561 INFO - Quality profile : [name=Default C++
Profile,language=c++]
12:22:58.575 INFO - Excluded tests:
12:22:58.575 INFO - **/package-info.java
12:22:58.607 INFO - Configure Maven plugins
12:22:58.739 INFO - Compare to previous analysis (2013-05-14)
12:22:58.790 INFO - Compare over 5 days (2013-05-09, analysis of 2013-05-14
11:11:07.0)
12:22:58.839 INFO - Compare over 30 days (2013-04-14, analysis of
2013-05-14 11:11:07.0)
12:22:59.151 INFO - Base dir: C:\Users\ns783409
12:22:59.151 INFO - Working dir:
C:\Projects\Travel\Platform\Travel\TCS\reports
12:22:59.151 INFO - Source dirs:
C:\Projects\Travel\Platform\Travel\TCS\_mainline\Common
12:22:59.152 INFO - Source encoding: UTF-8, default locale: en_US
12:22:59.301 INFO - Sensor CxxSourceImporter...
12:23:00.412 INFO - Sensor CxxSourceImporter done: 1111 ms
12:23:00.412 INFO - Sensor CpdSensor...
12:23:00.413 INFO - SonarBridgeEngine is used
12:23:00.449 INFO - Cross-project analysis disabled
Added
C:\Projects\Travel\Platform\Travel\TCS\_mainline\Common\BarcodeMaker\ABitMap.cpp
Added
C:\Projects\Travel\Platform\Travel\TCS\_mainline\Common\BarcodeMaker\ABitMap.h
Added
C:\Projects\Travel\Platform\Travel\TCS\_mainline\Common\BarcodeMaker\Aztec.cpp
Added
C:\Projects\Travel\Platform\Travel\TCS\_mainline\Common\BarcodeMaker\Aztec.h
...................
...................
Added C:\Projects\Travel\Platform\Travel\TCS\_mainline\Common\XmlDomDoc.h
12:23:01.047 INFO - Sensor CpdSensor done: 635 ms
12:23:01.047 INFO - Sensor CxxSquidSensor...
12:23:01.360 INFO - Sensor CxxSquidSensor done: 313 ms
12:23:01.360 INFO - Sensor CxxRatsSensor...
12:23:01.370 INFO - Sensor CxxRatsSensor done: 10 ms
12:23:01.370 INFO - Sensor CxxXunitSensor...
12:23:01.371 INFO - Sensor CxxXunitSensor done: 1 ms
12:23:01.371 INFO - Sensor CxxCoverageSensor...
12:23:01.371 INFO - Sensor CxxCoverageSensor done: 0 ms
12:23:01.371 INFO - Sensor CxxCppCheckSensor...
12:23:01.372 INFO - Sensor CxxCppCheckSensor done: 1 ms
12:23:01.372 INFO - Sensor CxxCppNcssSensor...
12:23:01.377 INFO - Sensor CxxCppNcssSensor done: 5 ms
12:23:01.378 INFO - Sensor CxxVeraxxSensor...
12:23:01.378 INFO - Sensor CxxVeraxxSensor done: 0 ms
12:23:01.378 INFO - Sensor CxxValgrindSensor...
12:23:01.378 INFO - Sensor CxxValgrindSensor done: 0 ms
12:23:01.379 INFO - Sensor ProfileSensor...
12:23:01.909 INFO - Sensor ProfileSensor done: 530 ms
12:23:01.909 INFO - Sensor ProfileEventsSensor...
12:23:01.929 INFO - Sensor ProfileEventsSensor done: 20 ms
12:23:01.929 INFO - Sensor ProjectLinksSensor...
12:23:01.932 INFO - Sensor ProjectLinksSensor done: 3 ms
12:23:01.933 INFO - Sensor VersionEventsSensor...
12:23:01.947 INFO - Sensor VersionEventsSensor done: 14 ms
12:23:02.562 INFO - Execute decorators...
12:23:04.961 INFO - Persist graphs of components
12:23:05.018 INFO - ANALYSIS SUCCESSFUL, you can browse
http://localhost:9000
12:23:05.019 INFO - Executing post-job class
org.sonar.plugins.core.batch.IndexProjectPostJob
12:23:05.062 INFO - Executing post-job class
org.sonar.plugins.dbcleaner.ProjectPurgePostJob
12:23:05.072 INFO - -> Keep one snapshot per day between 2013-04-16 and
2013-05-13
12:23:05.073 INFO - -> Keep one snapshot per week between 2012-05-15 and
2013-04-16
12:23:05.074 INFO - -> Keep one snapshot per month between 2008-05-20 and
2012-05-15
12:23:05.075 INFO - -> Delete data prior to: 2008-05-20
12:23:05.077 INFO - -> Clean TCSMainlineCommon2 [id=1]
12:23:05.081 INFO - <- Clean snapshot 337
INFO:
------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO:
------------------------------------------------------------------------
Total time: 13.226s
Final Memory: 15M/500M
INFO:
------------------------------------------------------------------------
i also realized that generated report is something like this:
<error
file="C:\Projects\Travel\Platform\TCS\_mainline\Common\BarcodeMaker\ABitMap.cpp"
line="180" id="unreadVariable" severity="style" msg="Variable 'F' is
assigned a value that is never used"/>
where severity is style. I tried changing it to minor as well.
I don't see anything in sonar dashboard.
Any idea?
Thanks
Neil
--
View this message in context: http://sonar.15.x6.nabble.com/C-plugin-tp5012600.html
Sent from the Sonar user mailing list archive at Nabble.com.