Eclipse安装Checkstyle和Findbugs插件

Checkstyle 

Overview

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring (but important) task. This makes it ideal for projects that want to enforce a coding standard.

在eclipse中安装:

Help->install new software,在 add location中添加地址http://eclipse-cs.sourceforge.net/update,然后进行安装即可。

 
checkStyle 使用
 
选中一个工程,右键选择checkstyle->check code with checkstyle即可。
 
 

Findbugs

A program which uses static analysis to look for bugs in Java code.
 
在eclipse中安装过程和安装checkstyle一样, 在线安装地址为:http://findbugs.cs.umd.edu/eclipse


Findbugs的使用:

选中一个工程,右键选择Find bugs->Find bugs即可。

原文地址:https://www.cnblogs.com/greensoo/p/4527202.html