Alibaba Java Coding Guidelines Installation Tutorial

P3c Ali coding standards checking tools, the plug-in from the Alibaba Group P3C project development.

Open source code has been, GitHub: https://github.com/alibaba/p3c
Ali introductory articles: https://mp.weixin.qq.com/s/IbibsXlWHlM59kfXJqRvZA#rd

The plug-in supports the IDEA, Eclipse, after scanning the code, would be inconsistent with the code of the Statute of the show, even in the IDEA, also provides real-time detection based Inspection mechanism, while writing code, you can quickly find the problem, also achieve the bulk of a key repair function.

[Support] version

IDEA official repository: The minimum supported version 14.1.7, JDK1.7 +
the Eclipse plug-in version: Support 4.2 (Juno, JDK1.8 + ) and above

【Check for updates】

The new plug-ins can be detected by Help >> Check for Udates or directly to the installationAlibaba Java Coding Guidelines 的那个窗口,直接点击upload(下图2处)

【figure 1】 

[Plug-in] Uninstall

In the plug-in panel, click "uninstall" can be.

------------------------------------------------------------------------------------------------------------------------------------------

[IDEA-based environment, simple installation tutorial]
to open the IDEA, choose File -> Settings -> Plugins - after> Browse repositories, enter the search  alibaba selected Alibaba Java Coding Guidelines;

Click plug-in details in the "install" button and follow its prompts to complete the installation, the installation is complete you need to restart IDEA (because I was already installed, that shot shows to be updated update);

【figure 2】 

[Experience] function

After the installation is complete, restart the IDEA, you can see it after the restart function buttons in the menu bar

First, select the entire project right there will be two function buttons, click the green [ coding scanning statute ], you can start scanning global code, or right function button will appear on the detection of the project directory.

Second, you do not want all the scanning, scan all files or only files in a single folder, then select the directory or single file right this function button will appear, the effect is to scan out the file contains a bug or is not standardized.

Third, some of which non-standard code, right-click support for a key repair;

【to sum up】

Code specification testing, debugging code will help us to improve the coding efficiency, and improve the overall speed of operation of the project.

--------------------------------------------------------------------------------------------------------------------------------------

So the text to help you, give counsel article A lower-left corner or the top right of the article a thumbs go now!

Published 85 original articles · won praise 197 · views 330 000 +

Guess you like

Origin blog.csdn.net/weixin_43970743/article/details/103635153