##### Overview

- Download PMD 4.2.5
- What's new in PMD 4.2.5
- PMD in the news
- PMD-related products and books
- Best practices
- Future directions
- Similar projects
- Credits
- License
- What does 'PMD' mean?

##### Usage

- Installation
- Command line usage
- Ant task usage
- Maven plugin usage
- Mvn plugin usage
- IDE plugin usage
- Suppressing warnings
- Finding duplicated code
- JSP support

##### Customizing PMD

- Compiling PMD
- How to write a rule
- Writing XPath rules
- How to make a rule set
- How it works
- Rule guidelines

##### For example

- Run PMD on a Sourceforge project

##### Rule Sets

- Index
- Android
- Basic
- Braces
- Code Size
- Clone
- Controversial
- Coupling
- Design
- Finalizers
- Import Statements
- J2EE
- Javabeans
- JUnit Tests
- Logging (Java)
- Logging (Jakarta)
- Migrating
- Naming
- Optimizations
- Strict Exceptions
- Strings
- Sun Security
- Unused Code
- Java Server Pages
- Java Server Faces

##### Project Documentation

- About
- Project Info
- Project Reports
  - JavaDocs
  - JavaDoc Report
  - JavaDoc Warnings Report
  - Source Xref
  - Test Xref
  - Unit Tests
  - Clover
  - File Activity
  - Developer Activity
  - FAQs
  - PMD Report
  - CPD Report
- Development Process

##### Legend

- External Link
- Opens in a new window

## PMD Results

The following document contains the results of PMD.

## Summary

Files | Errors
--- | ---
7 | 36

## Files

Files | Violations
--- | ---
net/sourceforge/pmd/cpd/AnyTokenizer.java | 2
net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java | 1
net/sourceforge/pmd/jsp/ast/JspParser.java | 1
net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java | 29
net/sourceforge/pmd/rules/basic/AvoidUsingHardCodedIP.java | 1
net/sourceforge/pmd/util/ResourceLoader.java | 1
net/sourceforge/pmd/util/designer/CodeEditorTextPane.java | 1

### net/sourceforge/pmd/cpd/AnyTokenizer.java

Violation | Line
--- | ---
Avoid empty catch blocks | 37
Avoid empty catch blocks | 48

### net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java

Violation | Line
--- | ---
Avoid empty catch blocks | 1634

### net/sourceforge/pmd/jsp/ast/JspParser.java

Violation | Line
--- | ---
Avoid empty catch blocks | 1624

### net/sourceforge/pmd/jsp/ast/JspParserTokenManager.java

Violation | Line
--- | ---
Avoid unused local variables such as 'l' | 122
Avoid unused local variables such as 'l' | 432
Avoid unused local variables such as 'l' | 460
Avoid unused local variables such as 'i2' | 471
Avoid unused local variables such as 'l2' | 472
Avoid unused formal parameters such as 'active0' | 494
Avoid unused formal parameters such as 'active1' | 494
Avoid unused private methods such as 'jjStartNfa_2' | 502
Avoid unused local variables such as 'l' | 1000
Avoid unused formal parameters such as 'active0' | 1074
Avoid unused formal parameters such as 'active1' | 1074
Avoid unused private methods such as 'jjStartNfa_13' | 1082
Avoid unused local variables such as 'l' | 1128
Avoid unused local variables such as 'i2' | 1139
Avoid unused local variables such as 'l2' | 1140
Avoid unused formal parameters such as 'active0' | 1162
Avoid unused local variables such as 'l' | 1422
Avoid unused local variables such as 'i2' | 1433
Avoid unused local variables such as 'l2' | 1434
Avoid unused formal parameters such as 'active0' | 1456
Avoid unused local variables such as 'l' | 1988
Avoid unused formal parameters such as 'active0' | 2038
Avoid unused formal parameters such as 'active0' | 2304
Avoid unused formal parameters such as 'active1' | 2304
Avoid unused private methods such as 'jjStartNfa_1' | 2312
Avoid unused formal parameters such as 'active0' | 2634
Avoid unused local variables such as 'l' | 2837
Avoid unused local variables such as 'l' | 2981
Avoid unused formal parameters such as 'active0' | 3031

### net/sourceforge/pmd/rules/basic/AvoidUsingHardCodedIP.java

Violation | Line
--- | ---
Avoid empty catch blocks | 43

### net/sourceforge/pmd/util/ResourceLoader.java

Violation | Line
--- | ---
Avoid empty catch blocks | 44

### net/sourceforge/pmd/util/designer/CodeEditorTextPane.java

Violation | Line
--- | ---
Avoid empty catch blocks | 73