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.