To install the Checkstyle for Eclipse plugin:
In Eclipse, click on Help -> Install New Software...
Click on Add..
Enter the following:
Name: Checkstyle
URL:http://eclipse-cs.sourceforge.net
and click OK.
You should see Checkstyle and Extension for eclipse-cs plugin with additional Checks. Select the two checkboxes next to it and click Next >.
You‘ll need to accept the license and confirm you want to install a plugin that is not digitally signed. Go ahead and install it anyway.
Restart eclipse.
Statement: To cite this document, always state the source as shown above. If there are something wrong, please tell me by relpying below. Thanks.
原文:http://www.cnblogs.com/jdoran/p/4516010.html