user1845360
user1845360

Reputation: 857

PMD Eclipse plugin

I have installed PMD for eclipse 3.8 in the debian successfully. However, I am following these (http://www.eclipsezone.com/articles/pmd/) instructions to test a simple check and I get not violation, warnings, errors, etc...despite that the plugin in enabled through Properties -> PMD. Am I missing something in the configuration ?

Upvotes: 0

Views: 4951

Answers (3)

Jirawat Uttayaya
Jirawat Uttayaya

Reputation: 1302

Unlike FindBug or CheckStyle, the PMD Eclipse plug-in does not configure which rules to check for by default. You have to manually check which rules to use by going to Eclipse Preferences -> PMD -> Rule Configuration

PMD Rule Configuration

Upvotes: 1

mliebelt
mliebelt

Reputation: 15525

The normal problem here is that your problems view is not instrumented the right way. Do the following steps to correct it:

  1. Call the drop-down-menu enter image description here and select "Configure Contents..."
  2. Ensure that all items are shown, or that your selection includes the PMD errors enter image description here
  3. Accept your configuration change, and control, if the PMD infos, warnings, and errors are now visible.

Upvotes: 1

Ranu Jain
Ranu Jain

Reputation: 577

I have also installed PMD as per instruction provided at

http://www.eclipsezone.com/articles/pmd/

Its working fine for me i am able to genrate PMD reports, find the violation result.

What was the exact error are you getting.

Note : I have downloded PMD eclipse 3 plugin

Upvotes: 0

Related Questions