Use checkstyle in eclipse

Source: Internet
Author: User
Tags coding standards checkstyle
Use checkstyle in eclipse

Checkstyle is a Java program sourceCodeStyle tools can effectively help us to view code to better comply with coding standards, especially suitable for style standardization and unification during group development. Checkstyle provides high configurability to apply to various code specifications. In addition to the several common standards provided by it, you can also customize your own standards. Checkstyle provides plug-ins that support most common ides. Most of the plug-ins contain the latest checkstyle, so you don't have to worry about deploying one.

Let's take a look at the configuration and use of the checkstyle plug-in eclipse.


Figure 1: configure the eclipse-CS installation and update site


Figure 2: The latest version is 4.3.3.


Figure 3: Agree to the authorization terms


Figure 4: select the installation location


Figure 5: Right-click the project to be checkstyle and select Properties. Select the checkstyle project in the pop-up dialog box. If you need checkstyle, select the check box in the upper left corner. If you do not need it, you can reverse it. On this page, you can also select code specifications and configure the corresponding code specifications.


Figure 6: Select checkstyle in Figure 5 and click "OK". The project is rebuilt, and the checkstyle effect is displayed.


Figure 7: You can use the configuration interface in eclipse to manage the configuration of checkstyle attributes.

This articleArticleIt's just an entry-level experience of using checkstyle, and its many powerful functions have to be well studied. The following are good learning resources on the network.

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.