2003-02-11 23:03:38 +00:00
|
|
|
PMD for NetBeans.
|
|
|
|
|
2002-10-28 22:36:20 +00:00
|
|
|
------------------------
|
|
|
|
INSTALL
|
|
|
|
------------------------
|
|
|
|
|
2003-02-11 23:03:38 +00:00
|
|
|
1) Start NetBeans
|
2002-12-02 22:36:29 +00:00
|
|
|
2) Goto Tools --> Update Center
|
2003-02-11 23:03:38 +00:00
|
|
|
3) Choose "Install Manually Downloaded Modules (.nbm Files).".
|
2002-12-02 22:36:29 +00:00
|
|
|
4) Press Next
|
2003-02-11 23:03:38 +00:00
|
|
|
5) Choose Add
|
2002-12-02 22:36:29 +00:00
|
|
|
6) Goto the directory where you downloaded pmd-netbeans and choose the file "pmd.nbm".
|
|
|
|
7) Press OK
|
|
|
|
8) Press Next
|
|
|
|
9) Press Next
|
|
|
|
10) Press Accept
|
|
|
|
11) Choose Include
|
|
|
|
12) Press Finish
|
2003-02-11 23:03:38 +00:00
|
|
|
13) Choose OK to restart, if so prompted
|
2002-10-28 22:36:20 +00:00
|
|
|
|
|
|
|
------------------------
|
|
|
|
USE
|
|
|
|
------------------------
|
|
|
|
|
2003-02-11 23:03:38 +00:00
|
|
|
Right click on one or more folders or Java files, choose Tools -> PMD and watch the tool
|
|
|
|
find your flaws. The tool is also located under the global Tools menu. Double
|
|
|
|
click on the error messages in the output pane to go to the line in the
|
|
|
|
Java source file to correct the problem PMD discovered.
|
2002-10-28 22:36:20 +00:00
|
|
|
|
|
|
|
------------------------
|
|
|
|
OPTIONS
|
|
|
|
------------------------
|
2003-02-11 23:03:38 +00:00
|
|
|
|
|
|
|
1) Start NetBeans
|
2002-12-02 22:36:29 +00:00
|
|
|
2) Goto Tools --> Options
|
|
|
|
3) Navigate to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
|
|
|
|
4) Click on "Rules"
|
|
|
|
5) Click on the [...] button
|
|
|
|
6) Select the different rules to see information and examples of the rule
|
|
|
|
7) Use the <, <<, >, >>, buttons to choose which rules to use.
|
|
|
|
8) Press OK to save the configuration
|