You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sonar-PMD is a plugin that provides coding rules from [PMD](https://pmd.github.io/) for use in SonarQube.
3
7
4
8
Starting April 2022, the project has found a new home. We, [jborgers](https://github.com/jborgers) and [stokpop](https://github.com/stokpop),
@@ -9,8 +13,7 @@ For a list of all rules and their status, see: [RULES.md](https://github.com/jbo
9
13
## Installation
10
14
The plugin should be available in the SonarQube marketplace and is preferably installed from within SonarQube (Administration --> Marketplace --> Search _pmd_).
11
15
12
-
Because of changed integration of the Java-plugin in SonarQube and our dependency on it, this plugin is temporarily not available from the Marketplace.
13
-
Hopefully this will be fixed quickly with the release of version 3.4.0.
16
+
This plugin is available again from the Marketplace with the release of version 3.4.0.
14
17
Alternatively, download the [latest JAR file](https://github.com/jborgers/sonar-pmd/releases/latest), put it into the plugin directory (`./extensions/plugins`) and restart SonarQube.
15
18
16
19
## Usage
@@ -22,18 +25,20 @@ Usage should be straight forward:
22
25
Sonar-PMD analyzes the given source code with the Java source version defined in your Gradle or Maven project.
23
26
In case you are not using one of these build tools, or if that does not match the version you are using, set the `sonar.java.source` property to tell PMD which version of Java your source code complies to.
(*) Note: Plugin version 3.4.x runs in SonarQube 8.9, however, Java 17+ is only fully supported in SonarQube 9.3+.
38
+
(*1) Note: Plugin version 3.4.x runs in SonarQube 8.9, however, Java 17+ is only fully supported in SonarQube 9.3+.
39
+
(*2) Note: Supports all tested Java 21 features; on parsing errors, warns instead of breaks
35
40
36
-
A majority of the PMD rules have been rewritten in the Java plugin. Rewritten rules are marked "Deprecated" in the PMD plugin, but a [concise summary of replaced rules](http://dist.sonarsource.com/reports/coverage/pmd.html) is available.
41
+
A majority of the PMD rules have been rewritten in the Sonar Java plugin. Rewritten rules are marked "Deprecated" in the PMD plugin, but a [concise summary of replaced rules](http://dist.sonarsource.com/reports/coverage/pmd.html) is available.
37
42
38
43
## Rules on test
39
44
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.
@@ -48,33 +53,3 @@ To build the plugin and run the integration tests:
0 commit comments