You can also exclude certain files from being processed by a ruleset using exclude patterns, + with an optional overriding include pattern. A file will be excluded from processing when there + is a matching exclude pattern, but no matching include pattern. Path separators in the source + file path are normalized to be the '/' character, so the same ruleset can be used on multiple + platforms transparently. Additionally, this exclude/include technique works regardless of how + PMD is used (e.g. command line, IDE, Ant), making it easier to keep application of your PMD + rules consistent throughout your environment. Here is an example:
+