Comments (5)
Hi @KaurKamaljeet,
please read the wiki first to understand how the plugin is working. The cxx plugin needs external tools to work.
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Scan-Source-Code
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Scan-Report-Files
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Troubleshooting-Coverage
Regards,
from sonar-cxx.
Hello @guwirth,
Thank you for your response.
I added cobertura sensor for code coverage in sonar.properties but result is still the same.
sonar.cxx.cobertura.reportPaths=coverage.xml
from sonar-cxx.
I am getting following logs for all the sensors
from sonar-cxx.
Hi,
maybe you can compare your report with the sample here:
https://github.com/SonarOpenCommunity/sonar-cxx/wiki/sonar.cxx.cobertura.reportPaths
The code for the sensor is here:
https://github.com/SonarOpenCommunity/sonar-cxx/tree/master/cxx-sensors/src/main/java/org/sonar/cxx/sensors/coverage/cobertura
Other idea: Do you read a .cpp file? Is the file indexed?
Regards,
from sonar-cxx.
Found the issue. My coverage report was not being generated in the cobertura xml format. It was using —Sonarqube instead of —cobertura. After changing that I am getting coverage.
Thanks a lot for all the help
from sonar-cxx.
Related Issues (20)
- Preprocessor cannot find include file... HOT 1
- Sorry I was wrong
- Exception while running CppDepend.SonarQube.RuleRunner.exe HOT 1
- Rule template for GCC custom rules not working due to key validation: - sign not allowed HOT 15
- Sonar read xml file of CppCheck check by MISRA2012;But there is no corresponding misra warning HOT 13
- Cppcheck 2.13.0 support HOT 3
- plugin issue: The plugin [cxx] does not support Java 1.8.0_212 HOT 1
- Change rule keys containing non standard characters
- Builds failing with 'CXX-public_undocumented_api' does not exist error HOT 1
- SonarCloud: Java 11 is no longer supported as scanner runtime environment
- Very little security rules and security hotspot rules HOT 1
- can you update xx-custom-checks-example-plugin for Sonar 9.9 TLS HOT 2
- Verify deprecated Web API endpoints and parameters HOT 1
- Optimizing the execution of sensors
- C++ plugin causing an issue while running Java/python projects HOT 5
- How to define program language HOT 1
- cxx-custom-checks-example-plugin can not to report issue information HOT 8
- The SonarScanners download only required 3rd-party plugins HOT 1
- [Fix][cxx-custom-checks-example-plugin] the problem that sample rules could not be loaded and registerd normally HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-cxx.