Exclude files from Flex PMD

You can exclude files and/or packages from Flex PMD by creating your own rule set, use the “exclude-pattern” tag to exclude files.

  1. <ruleset name="myruleset"
  2. xmlns=...>
  3. <description>My ruleset</description>
  4. <exclude-pattern>.*/some/package/.*</exclude-pattern>
  5. <exclude-pattern>.*/some/other/package/FunkyClassNamePrefix.*</exclude-pattern>
  6. <include-pattern>.*/some/package/ButNotThisClass.*</include-pattern>
  7. <rule>...
  8. </ruleset>

Link: http://pmd.sourceforge.net/howtomakearuleset.html

Leave a Reply

Your email address will not be published. Required fields are marked *