Ravi sinha
Ravi sinha

Reputation: 119

After Installing PMD in Luna in Prespective it is Not Showing?

I installed the Pmd Plugin in Eclipse Luna and in STS, in the installation history it is showing installed but it is not showing in the perspective, so I am not able to run my code through PMD.

How can I fix that?

Upvotes: 3

Views: 3905

Answers (2)

user3906011
user3906011

Reputation:

I discovered that you need to turn on PMD for each project separately. Which make sense, because you can have different rule set per project. So to turn it on, right click on project -> “Preferences” -> “PMD” (there would be two PMD sections if you didn’t uninstall old PMD plugin)-> “Enable PMD for this project” -> “Add…”. Now you should pick a location of PMD ruleset file.

These PMD warning sometimes clash with Eclipse native warnings, so there is possibility to make them more visible. Go to “Window” -> “Preferences” -> “General” -> “Editors” -> “Text Editors” -> “Annotations” and find “PMD Violations”.

Upvotes: 1

jeff porter
jeff porter

Reputation: 6620

If installed via the Market place, you then need to enable it for each Project...

Project Properties

Then select the ruleset you want to use.

The PROBLEMS view will then show the violations.

Upvotes: 4

Related Questions