PMD

Topics 

  • What is & Why PMD? 
  • PMD Rule Sets 
  • How to get started 
  • Integration with other tools 
  • Best practices

What is & Why PMD?

What is PMD? 

  • PMD is a static Java source code analysis tool - it checks your code for
    • unused fields 
    • empty try/catch/finally/if/while blocks 
    • unused method parameters
    • etc. 
  • Based on a code ruleset 
    • Unused code rules (represented by class UnusedPrivateFieldRule.java) – checks unused private field, unused local variable, unused private method, unused parameter 
    • Many ready-to-use rulesets 
    • You can create your own ruleset

 

Download course content