Java advanced (iv) ------ java programming specifications --- installation of FindBugs, PMD, and CheckStyle code quality detection tools
Here, the plug-in is used to install FindBugs, PMD, and CheckStyle for myeclipse.
You can search for checkstyle, pmd, and findbugs to find their corresponding plug-ins.
There are three installation methods for plug-ins. I used different methods to install checkstyle, pmd, and findbugs.
Similarly, all three plug-ins can be installed in the same way. We recommend that you install dropins automatically.
However, you must pay attention to the version.
Otherwise, after the installation is successful, restart myeclipse to find the relevant menu, and the interface cannot be found in show view.
For example, Findbugs 3.0.0 must be Jdk 1.7 or later.
It may also be related to the version of myeclipse.
We recommend that you do not install a new version.
My myeclipse 10 has successfully installed checkstyle 6.1.1, PMD 3.2.6, and findbugs 2.0.0.
Graphical interface installation-checkstyle
Download: net.sf.eclipsecs-updatesite_22.214.171.124402131929-bin.zip files
Use the myeclipse graphical button to install the installation. Click the link below:
Install the checkstyle plug-in myeclipse
For more information, see
Checkstyle Common Errors
Manual configuration and installation-PMD
Download pmd I'm using a pmd-eclipse-3.2.6
Decompress net.sourceforge.pmd.eclipse-3.2.6.v200903300643.zip to get the eclipse folder, copy the features and plugins under the eclipse folder to the Common directory under myeclipse, and confirm the replacement and merging.
Go to the MyEclipse installation directory and open/MyEclipse 10/configuration/org. eclipse. equinox. simpleconfigurator/bundlers.info.
Add net. sourceforge. pmd. eclipse. plugin, 3.2.6.v200903300643, ../Common/plugins/net. sourceforge. pmd. eclipse. plugin_3.2.6.v200903300643.jar, 4, false
This step is critical. If you download another version, the constructed name must correspond to your own file. The format must correspond to other registered formats in bundles.info.
After MyEclipse is restarted, right-click the project and you will be able to see the message "right-click ".
Automatic dropins installation-FindBugs
Decompress the package and put the edu. umd. cs. findbugs. plugin. eclipse_126.96.36.19951120 folder in the dropins folder of MyEclipse.
D: myeclipseMyEclipse 10 dropins
After MyEclipse is restarted, right-click the project and you will be able to see the FindBugs options. corresponding interfaces are also available in the show view.