Jeff Jensen - Reported missing XML schema references in documentation, wrote new XML schema, reported missing schema refs in example rulesets, suggested posting XML schema on PMD site, discussion of 'comments in catch block' feature, suggested description attribute in property element
Christopher Stach - bug report for VariableNamingConventions, bug report for CallSuperInConstructor, many bug reports for rules that didn't handle JDK 1.5 constructs
Matthew Harrah - noticed missing element in UseCorrectExceptionLogging definition, script bug report
Mike Kaufman - Reported a bug in UnnecessaryCaseChange
Elliotte Rusty Harold - reported bug in UseAssertSameInsteadOfAssertTrue, suggested creating a new ruleset containing rules in each release, UncommentedEmptyConstructor suggestions, noted missed case for UnusedFormalParameter, documentation suggestions, reported mistake in UnnecessaryLocalBeforeReturn message, bug report 1371757 for misleading AvoidSynchronizedAtMethodLevel example, bug report 1293277 for duplicated rule messages, bug report for ConstructorCallsOverridableMethod, suggestion for improving command line interface, mispeling report, suggestion for improving Designer startup script, "how to make a ruleset" documentation suggestions, noticed outdated Xerces jars, script renaming suggestions, UseLocaleWithCaseConversions rule suggestion
-
Jeff Jensen - Wrote new XML schema, reported missing schema refs in example rulesets, suggested posting XML schema on PMD site, discussion of 'comments in catch block' feature, suggested description attribute in property element
David Karr - reported stale XPath documentation
Jarkko Hietaniemin - rewrote most of cpd.sh, tweaked C/CPP grammar to allow $ in identifiers, several CPD documentation suggestions, noted missing CPD scripts in binary release
Dawid Weiss - Reported bug in UnusedPrivateMethod
diff --git a/pmd/xdocs/howtomakearuleset.xml b/pmd/xdocs/howtomakearuleset.xml
index afd895f255..a390faeacb 100644
--- a/pmd/xdocs/howtomakearuleset.xml
+++ b/pmd/xdocs/howtomakearuleset.xml
@@ -13,10 +13,13 @@ Say you want to pick specific rules from various rule sets and customize them.
Use one of the current rulesets as an example. Copy and paste
it into your new file, delete all the old rules from it, and change
the name and description. Like this:
-
After you add these references it'll look something like this:
-
-
+
+
This ruleset checks my code for bad stuff
@@ -66,10 +72,13 @@ Say you want to pick specific rules from various rule sets and customize them.
You can also make a custom ruleset that excludes rules, like this:
-
+
+ xmlns="http://pmd.sf.net/ruleset/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
+ xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
Just the braces rules I like
diff --git a/pmd/xdocs/howtowritearule.xml b/pmd/xdocs/howtowritearule.xml
index 553f61431d..aef7e80cba 100644
--- a/pmd/xdocs/howtowritearule.xml
+++ b/pmd/xdocs/howtowritearule.xml
@@ -190,9 +190,11 @@ public class WhileLoopsMustUseBracesRule extends AbstractRule {
<?xml version="1.0"?>
- <ruleset name="customruleset"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
+ <ruleset name="My custom rules"
+ xmlns="http://pmd.sf.net/ruleset/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
+ xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<rule name="WhileLoopsMustUseBracesRule"
message="Avoid using 'while' statements without curly braces"
class="WhileLoopsMustUseBracesRule">