Skip to end of metadata
Go to start of metadata

Description / Feature

This plugin provides coding rules from PMD.

PMD Plugin

2.02.12.22.3

PMD

4.34.35.1.15.2.1

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server

Usage

In the quality profile, activate some rules from PMD and run an analysis on your project.

Set the sonar.java.source property to tell PMD which version of Java your source code complies to. The default value is 1.5. Possible values: 1.4, 1.5 or 5, 1.6 or 6, 1.7 or 7. Since version 2.2 of the plugin, this property can also be set to 1.8 or 8.

 

Rules on test

PMD tool provides some rules that can check the code of JUnit tests.Please note that these rules (and only these rules) will be applied only on the test files of your project.

 

  • No labels