Recently because of the experimental requirements for code review and program performance optimization, need to install some plug-ins under the MyEclipse, but because the current MyEclipse version and most of the tutorial is not the same, some installation options have changed, so the installation is very troublesome, through constant attempts, Reference and chopping tutorials and on the basis of their own practice, sorted out about Checkstyle, PMD, findbugs the easiest way to install, hoping to help more people in the installation of less detours
Original link: http://write.blog.csdn.net/postedit
MyEclipse version: 2014
All required plug-ins can be found on this website: http://sourceforge.net/
Checkstyle
Checkstyle helps Java developers to follow certain coding specifications and automate the code-checking process, freeing developers from this important but tedious task.
The main contents of checkstyle inspection:
–javadoc notes
– Naming conventions
– title
–import statement
– Volume size
– Blank
– Modifiers
– Block
– Code issues
-Class Design
Installation method:
Download: Net.sf.eclipsecs-updatesite_5.7.0.201402131929-bin.zip file
Unzip and open the files under Plugins and features to myeclipse corresponding files
Reboot MyEclipse, project right click to see Checkstyle option installed successfully
Pmd
PMD: Static code analysis tool, automatic detection of potential defects and unsafe or suboptimal
The code.
Download PMD I'm using a pmd-eclipse-1.8.0.
After opening, copy the net.sourceforge.pmd.eclipse_1.8.0 folder to the plugins directory under MyEclipse
Then open the/myeclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundlers.info in the MyEclipse installation directory
Plus net.sourceforge.pmd.eclipse,1.8.0,file:/e:/myeclipse/pligins/net.sourceforge.pmd.eclipse_1.8.0/,4,false at the back.
After restarting MyEclipse, the project right click to see PMD.
FindBugs
Java Static code analysis tools, not focusing on styles or formatting, focusing on finding
Find real bugs or potential performance problems, help developers improve code quality and
In addition to the hidden defects, the software can be analyzed without actually running the program.
Installation:
Download Edu.umd.cs.findbugs.plugin.eclipse_3.0.0.20140706-2cfb468.zip
Unzip the edu.umd.cs.findbugs.plugin.eclipse_3.0.0.20140706-2cfb468 folder into MyEclipse's plugins in the same way
and joined at the end of the/myeclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundlers.info.
edu.umd.cs.findbugs.plugin.eclipse,3.0.0.20140706-2cfb468,file:/e:/myeclipse/pligins/ Edu.umd.cs.findbugs.plugin.eclipse_3.0.0.20140706-2cfb468/,4,false
After restarting the MyEclipse, the project right click to see the PMD option