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

 ̄綄美尐妖づ 提交于 2019-12-12 22:20:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!