You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/02/13 12:13:44 UTC
[commons-rng] 01/02: Disable PMD for the JMH module.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit 88110c2db7e61b8cafff70566001650fbb30ad09
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Feb 13 11:40:19 2020 +0000
Disable PMD for the JMH module.
---
commons-rng-examples/examples-jmh/pom.xml | 2 ++
pom.xml | 3 +++
2 files changed, 5 insertions(+)
diff --git a/commons-rng-examples/examples-jmh/pom.xml b/commons-rng-examples/examples-jmh/pom.xml
index 6b58813..826e748 100644
--- a/commons-rng-examples/examples-jmh/pom.xml
+++ b/commons-rng-examples/examples-jmh/pom.xml
@@ -69,6 +69,8 @@
<jmh.version>1.22</jmh.version>
<uberjar.name>examples-jmh</uberjar.name>
<project.mainClass>org.openjdk.jmh.Main</project.mainClass>
+ <!-- Disable analysis for benchmarking code. -->
+ <pmd.skip>true</pmd.skip>
</properties>
<profiles>
diff --git a/pom.xml b/pom.xml
index 7b7a497..a7e7a53 100644
--- a/pom.xml
+++ b/pom.xml
@@ -225,6 +225,9 @@
<rulesets>
<ruleset>${rng.parent.dir}/src/main/resources/pmd/pmd-ruleset.xml</ruleset>
</rulesets>
+ <excludeRoots>
+ <excludeRoot>target/generated-sources</excludeRoot>
+ </excludeRoots>
</configuration>
</plugin>
<plugin>