GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing docs.pmd-code.org — Configuring rules | PMD Source Code Analyzer
Release date: 28-December-2026
Configuring rulesLearn how to configure your rules directly from the ruleset XML.
Table of ContentsMessage and priority overridingYou can change a rule’s message by specifying a Similarly, the priority of a rule can be changed via a nested
element. Using priority, you can deactivate some rules based on a
minimum priority threshold (set using the
Putting things together, the following rule reference lowers the priority
of EmptyCatchBlock to 5 (“Low”), such that e.g. using the Rule propertiesProperties make it easy to customise the behaviour of a rule directly from the xml. They come in several types, which correspond to the type of their values. For example, NPathComplexity declares a property “reportLevel”, with an integer value type, and which corresponds to the threshold at or above which a method will be reported. If you believe that its default value of 200 is too high, you could lower it to e.g. 150 in the following way: Properties are assigned a value with a All property assignments must be enclosed in a Tip The properties of a rule are documented with the rule, e.g. here for NPathComplexity. Note that assigning a value to a property that does not exist throws an error! Some properties take multiple values (a list), in which case you can provide them all by delimiting them with a comma (‘,’), e.g. These properties are referred to as multivalued properties in this documentation.
Tags:
userdocs
getting_started
| ||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |