sonar-cxx | SonarQube C++ Community plugin : This plugin | Plugin library
kandi X-RAY | sonar-cxx Summary
kandi X-RAY | sonar-cxx Summary
SonarCloud / SonarSource SA(Technical Debt analysis). DeepCode / DeepCode AG(real-time AI powered semantic code analysis). JProfiler / ej-technologies GmbH(when it comes to profiling: Java profiler tool). Travis CI(Linux Build and Integration Tests). AppVeyor CI(Windows Build and Deployment).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the components
- Append a snippet to a StringBuilder
- Compile the given grammar rule
- Performs a preprocessor
- Process pc - lint report
- Returns a string representation of the report issue
- Defines the plugin
- List of supported sensors
- Initialize the state machine
- Add a if line
- Process a report file
- Process a Cxx report
- Lex a source code
- Create the java object
- Initialize property map
- Parse XML report
- Consumes the next token
- Main entry point
- Process report
- Process the report
- Compile this Expression
- Performs preprocessor actions
- Visit a node
- Reads the report file and adds it to the report
- Visits a AST node
- Creates a leaf node
sonar-cxx Key Features
sonar-cxx Examples and Code Snippets
Community Discussions
Trending Discussions on sonar-cxx
QUESTION
I am having SonarQube Community Edition (v7.9.5) server running with sonar-cxx community plugin v1.3.3
Now for a test C++ project, I have generated cppcheck (v2.3) analysis report and ran sonar-scanner (https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip) as follows.
...ANSWER
Answered 2021-Feb-16 at 05:45The issue cause is found after doing some more digging.
Issue cause: The default quality profile corresponding to the C++ (Community) had their all rules disabled by default, and there was no option to enable them as well.
Fix: Created a new quality profile extending the default one, then enabled rules for that, and finally made it as the default quality profile for C++ (Community) solves the issue.
Update (16-Feb-'21): Got a clarification from sonar-cxx team that this is intentional as well, and the same is documented in https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Manage-Quality-Profiles
Since the cxx plugin contains a large number of sensors with over 4000 rules, all rules are initially deactivated in the default profile Sonar way for the programming language CXX. Enabling all rules would have a negative impact on the analysis performance and mostly only a subset is needed.
Therefore, after installation, no sensor issues are displayed. To display issues, the corresponding rules must first be enabled in the Quality Profile being used by the project.
QUESTION
ANSWER
Answered 2020-Oct-19 at 08:34Rules are active in this version of sonar-cxx-plugin-1.2.2.1653.jar
. Here working as expected.
QUESTION
On Ubuntu-18.04
I am trying to generate vera++ report to import in SonarQube
. Where as it fails with below error.
ANSWER
Answered 2020-Oct-19 at 12:03Yes, i have downloaded the below file and executed now it is working fine.
QUESTION
Our Sonar Build Environment details as follows:
- SonarQube Server Version - 5.6.6 (64-Bit).
- Sonar Client Build Operating System – Windows-7 (64-Bit).
- Sonar-scanner- Version - 3.0.3.778.
- sonar-cxx-plugin-0.9.7.jar
- sonar-csharp-plugin Version -5.11.0.1761.
- sonar-objective-c-plugin-0.5.0-SNAPSHOT.jar
- Source Code Language: C# and C++
Our SonarQube server is centralized server, So have installed (cxx-plugin, objective-c-plugin and csharp-plugin)
Current Problem:
When we scan the code, if fails with below error. Since we have multiple language (C# and C++) code, Both the language has to be scanned at a time.
ERROR: Caused by: Language of file 'workspace/HS30/baseclasses/ametex.h' can not be decided as the file matches patterns of both sonar.lang.patterns.c++ : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.hxx,**/*.hpp,**/*.hh,**/*.h and sonar.lang.patterns.objectivec : **/*.h,**/*.m
sonar.language=cs,c++ (Tried but didn't work)
So kindly help us to resolve the same.
...ANSWER
Answered 2017-Jun-12 at 13:13This is a question of which language "claims" .h
files. Only one language can claim any given file extension and currently you have two languages claiming .h
, so the scanner can't figure out which analyzer to give those files to, and gives up.
Specifically, from your error message:
QUESTION
Our Sonar Build Environment details as follows:
SonarQube Server Version - 5.6.6 (64-Bit). Sonar Client Build Operating System – Ubuntu 14.04.5 LTS (64-Bit). Sonar-scanner- Version - 3.0.3.778. sonar-cxx-plugin-0.9.7.jar Source Code Language: C++
Description:-
I have .gcov coverage report. Wanted to know is it possible to import the same on Sonarqube Dashboard using above mentioned Cxx community plugin?
If so kindly help me to do the same. Thanks in advance.
...ANSWER
Answered 2017-Dec-04 at 09:58Use absolute filename path in gcovr report solved for me.
sonar config file: sonar-project.properties
QUESTION
Our Sonar Build Environment details as follows:
- SonarQube Server Version - 5.6.7 (64-Bit).
- Sonar Client Build Operating System – Ubuntu-14.04 (LTS - 64-Bit).
- Sonar Build machine total RAM: 16-GB.
- Sonar-Scanner- Version - 3.0.3.778.
- sonar-cxx-plugin-0.9.7.jar
- Source Code Language: C++
- Client Machine Java Version: 1.8
- Source Code Size: 62-GB.
Problem:
Through Jenkins sonar-scanner finished successfully (Log as follows).
Jenkins Sonar-Scanner Build Log:
...ANSWER
Answered 2017-Nov-08 at 10:10You need to upgrade the memory allocated for Compute Engine on the server side not on the scanner side (for this particular issue).
So on your SonarQube server, update the following parameter :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sonar-cxx
Install the Plugin
Run an analysis
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page