From dfd5b7b8865d984feefaed331a31b1c9fae5fb2e Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 20 Dec 2018 18:53:47 +0100 Subject: [PATCH] [doc] Fix links to making rulesets --- docs/pages/pmd/userdocs/best_practices.md | 2 +- docs/pages/pmd/userdocs/tools/maven.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/pmd/userdocs/best_practices.md b/docs/pages/pmd/userdocs/best_practices.md index 5c6aad0158..e80dc16f33 100644 --- a/docs/pages/pmd/userdocs/best_practices.md +++ b/docs/pages/pmd/userdocs/best_practices.md @@ -21,7 +21,7 @@ Then, run rules, that detect empty `if` statements and such-like. You can find t After that, look at all the categories and select the rules, that are useful for your project. You can find an overview of the rules on the [Rule Index](pmd_rules_java.html). -Use the rules you like [via a custom ruleset](pmd_userdocs_understanding_rulesets.html). +Use the rules you like [via a custom ruleset](pmd_userdocs_making_rulesets.html). ## PMD rules are not set in stone diff --git a/docs/pages/pmd/userdocs/tools/maven.md b/docs/pages/pmd/userdocs/tools/maven.md index 1e184ba204..568cefefbd 100644 --- a/docs/pages/pmd/userdocs/tools/maven.md +++ b/docs/pages/pmd/userdocs/tools/maven.md @@ -109,7 +109,7 @@ The value of the 'ruleset' element can either be a relative address, an absolute A clean strategy for customizing which rules to use for a project is to write a ruleset file. In this file you can define which rules to use, add custom rules, and customizing which rules to include/exclude from official rulesets. More information on -writing a ruleset can be found [here](pmd_userdocs_understanding_rulesets.html). +writing a ruleset can be found [here](pmd_userdocs_making_rulesets.html). Note that if you include other rulesets in your own rulesets, you have to be sure that the plugin will be able to resolve those other ruleset references. @@ -236,7 +236,7 @@ To specify a set of official, built-in rulesets to be used set them in the prope A clean strategy for customizing which rules to use for a project is to write a ruleset file. In this file you can define which rules to use, add custom rules, and customizing which rules to include/exclude from official rulesets. More information on -writing a ruleset can be found [here](/pmd_userdocs_understanding_rulesets.html). +writing a ruleset can be found [here](pmd_userdocs_making_rulesets.html). Add to the root of your Maven project a pmd.xml file which contains the ruleset mentioned in the previous paragraph. Add the following property to your project now: