![]() if you use Quality Profile for C++ that you have been configuring for a long time, backup its copy and replace 'c++' with 'cxx' in the saved file.If you need to update SonarCXX and maintain the Issues history from PVS-Studio (for example, keep the statuses like Won't Fix or False Positive with all comments), follow these instructions: If you immediately use the updated version of SonarCXX (2.0.+) for your project, then the information below is irrelevant for you. ![]() All Issues from the report are considered new. If you update the SonarCXX plugin without prior configuration and then download the PVS-Studio report, all the pre-existing PVS-Studio Issues are considered deleted. As a result, the PVS-Studio plugin now generates different unrelated repositories for these languages by default. One of the profound changes - renaming the language key from 'C++' to 'CXX'. Maintaining repository compatibility when upgrading to new SonarCXX plugin versionĭevelopers made numerous changes to SonarCXX 2.0.+, taking into account the experience of previous versions. One of the sections below describes how to set up automatic updates. When a new PVS-Studio version releases, new diagnostics may appear, so you will have to update the plugin on the SonarQube server and add the new rules to the Quality Profile that uses PVS-Studio diagnostics. The ability to perform any action on quality profiles is granted to members of the sonar-administrators group.Ī new profile is created using the menu command Quality Profiles -> Create: Every profile is bound to a particular programming language, but you can create several profiles with different rule sets. You can include PVS-Studio diagnostics into existing profiles or create a new profile. Please, note that if you use SonarC++ Community plugin version lower than 2.0+, then instead of the CXX language, there will be C++(Community) / C(Community).Ī Quality Profile is a collection of diagnostic rules to apply during an analysis. Below you can see the Quality Profile setting with pre-installed PVS-Studio and SonarC++ Community (v2.0.4) plugins. Creating and setting up a Quality Profile Once the SonarQube server is installed, copy the plugin ( sonar-pvs-studio-plugin.jar) to this directory: SONARQUBE_HOME/extensions/pluginsĭepending on what language the analysis results refer to, install the corresponding plugins from the list below (some of them may be installed by default, depending on the SonarQube edition in use): When creating a new project, use a profile with one of the standard languages (C++, C#, Java). This plugin allows you to keep the metrics/statistics obtained earlier and will probably be discarded in future releases. This plugin is provided for compatibility of PVS-Studio plugins when moving from older versions of SonarQube to newer ones. ![]() sonar-pvs-studio-lang-plugin.jar - a plugin which allows creating a quality profile for the C/C++/C# languages.sonar-pvs-studio-plugin.jar - a plugin which allows importing PVS-Studio analysis results into a project on the SonarQube server.The following plugins for SonarQube are available for PVS-Studio users: PVS-Studio plugins and how to install them Operating system: Windows, Linux, macOS.SonarQube's Web interface allows you to filter the messages, navigate the code to examine bugs, assign tasks to developers and keep track of the progress, analyze bug amount dynamics, and measure the code quality of your projects. To import analysis results into SonarQube, PVS-Studio provides a special plugin, which allows you to add messages produced by PVS-Studio to the message base of the SonarQube server. This page showcases SonarQube's capabilities:. SonarQube can record metrics history and provides evolution graphs. SonarQube offers reports on duplicated code, coding standards, unit tests, code coverage, code complexity, comments, bugs, and security vulnerabilities. SonarQube is an open-source platform developed by SonarSource for continuous inspection of code quality to perform automatic reviews with static analysis of code to detect bugs, code smells, and security vulnerabilities on 20+ programming languages. You can request the trial Enterprise license here. Integration of PVS-Studio with the SonarQube platform is available only under the PVS-Studio Enterprise license.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |