Use of the Eclipse findbugs plugin

Source: Internet
Author: User

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:

  1. Help-->install New Software--add, as shown in

    Then click Next until finish, then restart Eclipse

  2. Click on a project, right-findbugs-->find bugs, as shown

    View the details of the code issue.

  3. 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

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.