简体   繁体   中英

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 ?

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 在此输入图像描述 and select "Configure Contents..."
  2. Ensure that all items are shown, or that your selection includes the PMD errors 在此输入图像描述
  3. Accept your configuration change, and control, if the PMD infos, warnings, and errors are now visible.

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规则配置

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM