Installation and use of Ali JAVA code specification plug-in (P3C) in MyEclipse

Java Code Specification Plugin

      The JAVA Code Specification Plug-in (P3C) was first released by Alibaba at the Hangzhou Yunqi Conference on October 14, 2017, making the previous Alibaba JAVA development manual officially open to the industry in the form of a plug-in.

      The relevant information and installation package of the plugin can be obtained on GitHub ( https://github.com/alibaba/p3c ). At present, the plug-in implements the 53 rules in the development manual, which can only meet the relatively basic code detection, and the follow-up should be more perfect.

      "Alibaba Java Development Manual" download address: https://yq.aliyun.com/attachment/download/?id=4942

      Through this manual, the coding level of developers can be improved, and efficient and high-quality codes can be produced.

installation method

The way to install the P3C plugin in Myecplise is as follows:

Step 1: Download the compressed package of the P3C plugin. You can open the address https://p3c.alibaba.com/plugin/eclipse/update in your browser , where you can download the compressed package of the plug-in. as follows:

write picture description here

Step 2: After decompression, there are two folders, features and plugins. Copy the contents of the two folders to the corresponding features and plugins folders in the dropins subfolder of the MyEclipse directory, and then restart MyEclipse. ok.

write picture description here

Instructions

Step 1: First confirm whether the installation is successful

Enter MyEclipse and see the P3C button on the toolbar, the code detection button on the left, and the Chinese-English switch button on the right, as follows:

write picture description here

Step 2:

Right-click the project directory or right-click the currently edited file to see the P3C button, as follows:

write picture description here

third step:

The code test is shown in the figure below. Through the test, you can find the irregularities of the developer's own code, so as to develop a habit of good development standards.

write picture description here

The other methods of installing the Ali JAVA Code Specification Plug-in (P3C) in MyEclipse are linked as follows:
http://www.mamicode.com/info-detail-2168539.html

The link to install the Alibaba Java Development Protocol Scanning Plugin in IDEA is as follows: https://www.aliyun.com/jiaocheng/771634.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324843988&siteId=291194637