Configuring Checkstyle in Eclipse

Source: Internet
Author: User
Tags checkstyle
1. Installing Checkstyle

Open Eclipse>>help>>eclipse Marketplace. Enter Checkstyle in search, locate the corresponding file, and click Install. Restart Eclipse when the installation is complete.
2. Configure Checkstyle

Open Windows>>preferences>>checkstyle in Eclipse, click New, create a new option profile for your Checkstyle to check.

When the new is complete, select the row with your mouse, and then click Set as Default on the right.

Click Configure or double-click the profile to enter the specific configuration options selection interface. The menu item on the left, if it has a green checkmark, means that we have added it to the check. To add a configuration item, simply click the Add button below and select OK and the submenu item will appear in the right area. You can then configure the specific item by ticking the check box.
3. Activating Checkstyle

Right-click on the project name >>properties, point Checkstyle. Tick Checkstyle active for this project to implement the automatic activation Checkstyle. Note To choose the configuration file you want Ah, do not change the word is the previous step set as default that.

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.