Recently in the search for code review tools, review board is powerful, but need to configure the server, and the company's servers can not be easily accessible, so think of the lightweight eclipse of the FindBugs plug-in.
Installation steps:
Help-->install New Software--add, as shown in
Then click Next until finish, then restart Eclipse
Click on a project, right-findbugs-->find bugs, as shown
View the details of the code issue.
Findbugs Configuration Interface
The information that can be configured includes settings for the following options:
1). Run FindBugs automatically switch when this item is selected, FindBugs will run automatically when you modify the Java class, as you set the Eclipse auto-compile switch, and when you finish modifying the Java file Save, the FindBugs will run. and display the corresponding information. When this is unchecked, you can only run FindBugs to check your code every time you need it.
2). Minimum priority to report selection This option is to let you choose which level of information to display, with low, Medium, and high three selections can be selected, very similar to log4j level settings. For example, if you select the High option, only the high level prompts will be displayed. If you select the Medium option, only the Medium and high level prompts will be displayed. If you select the low option, all levels of the prompt will be displayed.
3). Enable Bug Categories Selection Here are some options for displaying the bug Category: Correctness performance about code-related Aspects of code correctness internationalization about Code internationalization-related aspects of the multithreaded correctness about code multithreading correctness related aspects of the Code style Related aspects of malicious codes vulnerability about malicious damage code related aspects of For example, if you remove the check box from the style without selecting it, the warning message associated with the style classification is not displayed. The others are similar.
4). Select bug patterns to check for selection here you can select the relevant bug that you want to check in the Pattern entry can be from bug codes, Detector name, Detector description See what you want to check, and you can choose or remove the appropriate check criteria as needed. FindBugs summarizes the functionality of this plugin to help us improve the ability to write Java code and write more secure and reliable code.
Use of the Eclipse findbugs plug-in