Java advanced (iv) ------ java programming specifications --- installation of FindBugs, PMD, and CheckStyle code quality detection tools

Source: Internet
Author: User
Tags checkstyle

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_5.7.0.201402131929-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

 

Download edu.umd.cs.findbugs.plugin.eclipse_2.0.0.20111220.zip

Decompress the package and put the edu. umd. cs. findbugs. plugin. eclipse_2.0.0.20151120 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.

 

 

 

 

 


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.