Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
PVS-Studio as a plugin for SonarQube

PVS-Studio as a plugin for SonarQube

Jun 16 2017

SonarQube is an open source platform, designed for continuous analysis and measurement of code quality. More than a year PVS-Studio has a plugin for the integrating the results of the work in SonarQube. Thanks to it, the abilities of detection critical errors in C/C++/C# can be expanded by the functionality of the quality monitoring. PVS-Studio and SonarQube greatly complement each other, allowing to build a powerful factory to bring the program code to the ideal state.

0513_PVS-Studio_and_SonarQube/image1.png

High-quality static analysis, in addition to the analysis itself, includes tasks of displaying the results of the work in the user-friendly format and providing a wide range of abilities to handle these results. Following these principles, PVS-Studio analyzer offers the following features:

  • Working with the bug report right in the tool window of Microsoft Visual Studio or a separate Standalone utility. Navigation along the code, filtering and sorting of the report, suppression of the display of certain warnings, particular files and folders are excluded from the analysis and so on.
  • The report file (xml) can be converted to a readable format (html, text) for further distribution among those who are interested.
  • The error list can be mailed to those developers who made the errors. To do this, there are special utilities built in PVS-Studio.
  • To accumulate the launch statistics and its further analysis in dynamics, there is a possibility to use a special tool Analysis Statistics, built into plugin for Microsoft Visual Studio or Standalone utility.

However, for the full management of the software project lifecycle, it's necessary to control not only errors, but also other metrics of the source code: the number of rows, cyclomatic complexity, amount of errors per KLOC, unit test code coverage, duplication and so on.

Despite the fact that PVS-Studio does not have built-in tools for continuous analysis and measurement of code quality, thanks to the possibility of integration with the SonarQube platform, all this is available to users of the Enterprise version of PVS-Studio already out of the box.

Using the PVS-Studio plugin for the integration of the C/C++/C# analysis results to SonarQube, in addition to the power of PVS-Studio, you get the following abilities:

  • Reports of code duplication, compliance with the coding standards, unit tests coverage, possible errors in the code, density of comments in the code, technical debt and much more.
  • Storing the history of metrics and building graphs for the changes of these metrics over time.
  • Fully automated analysis: integration with Maven, Ant, Gradle and common continuous integration systems.
  • Integration with such IDEs as Visual Studio, IntelliJ IDEA and Eclipse plugin using SonarLint.
  • Integration with external tools: JIRA, Mantis, LDAP, Fortify and so on.
  • Possibility of extending the existing functionality with the help of third-party plugins.
  • SQALE methodology to evaluate the technical debt.

Configuring of the SonarQube plugin won't take more than 15 minutes, after that you can load the analysis results to SonarQube using PVS-Studio and start using all the abilities of this tool, for example:

  • Advanced abilities of filtering, categorisation and sorting of warnings:
0513_PVS-Studio_and_SonarQube/image2.png

  • Code navigation:
0513_PVS-Studio_and_SonarQube/image3.png

  • Metrics and reports:
0513_PVS-Studio_and_SonarQube/image4.png

0513_PVS-Studio_and_SonarQube/image6.png

  • And much more ...

You can find the full list of SonarQube features on the official site. This article provides a detailed description of the integration of PVS-Studio into SonarQube.

Check your C/C++/C# projects using PVS-Studio analyzer, implement continuous analysis and management of your code using SonarQube plugin!

Download and try PVS-Studio: http://www.viva64.com/en/pvs-studio/

An example of using PVS-Studio and SonarQube plugin in the analysis of PascalABC.NET is given in the article.

To purchase a commercial license, please contact us via the email. You can also write to us to get a temporary license key for a comprehensive investigation of PVS-Studio, if you want to avoid the limitations of the demo version.

Popular related articles


Comments (0)

Next comments next comments
close comment form