Skip to content

Instantly share code, notes, and snippets.

@pcon
Created April 17, 2018 21:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pcon/ad593bd116c5e8e58c9ce17c3b7b712f to your computer and use it in GitHub Desktop.
Save pcon/ad593bd116c5e8e58c9ce17c3b7b712f to your computer and use it in GitHub Desktop.
pmd -dir src/ -f text -language apex -R path/to/pmd.xml -cache path/to/cache/dir
<?xml version="1.0"?>
<ruleset name="Custom Rules"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>CCM's Ruleset for Apex code</description>
<rule ref="category/apex/bestpractices.xml/ApexUnitTestShouldNotUseSeeAllDataTrue" />
<rule ref="category/apex/bestpractices.xml/ApexUnitTestClassShouldHaveAsserts" />
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment