In Eclipse, go to Windows -> Prefernces -> PMD -> Rule Configration
Check out "Use Global..."
Scroll and find VariableNamingConvention, w/ ruleset Naming
Click "Rule Designer"
Click the Exceptions tab
Add VariableDeclaratorId[@Image='logger'] to the XPath exception expression
Click OK, and then repeat the PMD verification code.
Change the term logger above to any of your variable names.
steve source share