问题
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?
回答1:
If installed via the Market place, you then need to enable it for each Project...
Then select the ruleset you want to use.
The PROBLEMS view will then show the violations.
回答2:
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”.
来源:https://stackoverflow.com/questions/29679945/after-installing-pmd-in-luna-in-prespective-it-is-not-showing