This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch typos in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git
commit 15e8b7fbf2c7fc208b4e0eb7b5c3e3f5b23997a1 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Mon Apr 21 10:00:16 2025 -0400 fix typos --- .../apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.java | 3 ++- src/main/java/org/apache/maven/plugins/pmd/PmdReport.java | 8 ++++---- src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java | 2 +- src/site/apt/examples/usingRuleSets.apt.vm | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.java b/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.java index e6f5fb1..ddd794a 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.java +++ b/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.java @@ -106,7 +106,8 @@ public abstract class AbstractPmdViolationCheckMojo<D> extends AbstractMojo { private final ExcludeFromFile<D> excludeFromFile; /** - * Initialize this abstact check mojo by giving the correct ExcludeFromFile helper. + * Initialize this abstract check mojo by giving the correct ExcludeFromFile helper. + * * @param excludeFromFile the needed helper, for the specific violation type */ protected AbstractPmdViolationCheckMojo(ExcludeFromFile<D> excludeFromFile) { diff --git a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java index d5d2730..a3cc784 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/PmdReport.java @@ -464,10 +464,10 @@ public class PmdReport extends AbstractPmdReport { loc = loc.substring(loc.lastIndexOf('\\') + 1); } - // MPMD-127 in the case that the rules are defined externally on a url - // we need to replace some special url characters that cannot be - // used in filenames on disk or produce ackward filenames. - // replace all occurrences of the following characters: ? : & = % + // MPMD-127 in the case that the rules are defined externally on a URL, + // we need to replace some special URL characters that cannot be + // used in filenames on disk or produce awkward filenames. + // Replace all occurrences of the following characters: ? : & = % loc = loc.replaceAll("[\\?\\:\\&\\=\\%]", "_"); if (loc.endsWith(".xml")) { diff --git a/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java b/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java index 80fee05..dc55fba 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java +++ b/src/main/java/org/apache/maven/plugins/pmd/exec/CpdExecutor.java @@ -171,7 +171,7 @@ public class CpdExecutor extends Executor { } LOG.debug("CPD finished."); - // in constrast to pmd goal, we don't have a parameter for cpd like "skipPmdError" - if there + // in contrast to pmd goal, we don't have a parameter for cpd like "skipPmdError" - if there // are any errors during CPD analysis, the maven build fails. int cpdErrors = cpdConfiguration.getReporter().numErrors(); if (cpdErrors == 1) { diff --git a/src/site/apt/examples/usingRuleSets.apt.vm b/src/site/apt/examples/usingRuleSets.apt.vm index 7870511..ffe846f 100644 --- a/src/site/apt/examples/usingRuleSets.apt.vm +++ b/src/site/apt/examples/usingRuleSets.apt.vm @@ -42,7 +42,7 @@ Using Rule Sets To use other rule sets, you can configure it in the plugin as shown below. The rule sets may reside in the classpath, filesystem or at a URL. For rule sets that are bundled - with the PMD tool, you do not need to specificy the absolute path of the file. It will be resolved by + with the PMD tool, you do not need to specify the absolute path of the file. It will be resolved by the plugin. But if the rule set is a custom rule set, you need to specify its absolute path. See {{{https://pmd.github.io/pmd-${pmdVersion}/pmd_userdocs_making_rulesets.html}Making Rulesets}}