pmd/pmd-netbeans
Gunnlaugur Thor Briem 8870b42046 Make NBM signable (task 76460).
Sign it by creating your own key in the default keystore location
with Java's keytool, and then passing -Dstorepass=whatever to ant.
Then publish your certificate signature on the website -- or, even
better, sign your certificate with a chain of trust ending in an
official CA, so that people won't have to furrow their eyebrows
about anything ... but then, that costs money :). Ideally we should
have a CA-signed certificate for PMD with which we would sign the
personal key of whoever makes the build -- but of course the key
of that certificate would have to be "closed-source" :)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1969 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-15 11:39:36 +00:00
..
2003-06-15 11:39:36 +00:00
2003-06-15 11:39:36 +00:00
2003-02-11 17:52:22 +00:00

PMD for NetBeans.

------------------------
INSTALL
------------------------

 1) Start NetBeans 
 2) Goto Tools --> Update Center
 3) Choose "Install Manually Downloaded Modules (.nbm Files).". 
 4) Press Next
 5) Choose Add
 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
13) Choose OK to restart, if so prompted

------------------------
USE
------------------------

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.

XXXXXXXXXXXXXXXXXXXXXXXX
X        OPTIONS       X
XXXXXXXXXXXXXXXXXXXXXXXX

------------------------
RULES
------------------------
1) Start NetBeans 
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

------------------------
CUSTOM RULESETS
------------------------
1) Start NetBeans 
2) Goto Tools --> Options
3) Navigate to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
4) Click on the Expert tab
5) Click on "Rulesets"
6) Click "Add RuleSet" to locate the ruleset xml file you want to include
7) Click "Add Rule jar" to locate the jar containing the rules
8) Check "Include PMD standard rules" to include the rules from the pmd distribution
9) Press OK to save the configuration
10) Go to Rules to select the new rules.

------------------------
REALTIME SCANNING
------------------------
1) Start NetBeans 
2) Goto Tools --> Options
3) Navigate to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
4) Click on "Enable scan"
5) Choose true to enable scan, false otherwise.
6) Click on "Scan interval"
7) Enter the number of seconds between each scan
XX) NetBeans requires a restart to disable scanning