idea2023.1 plug-in: Alibaba development specifications

Table of contents

1. Reasons for use

2. Download

3. Installation

 4. Scanning explanation

Five, nagging

6. Link failure or version mismatch

 6.1. Link failure

6.2. Version mismatch


1. Reasons for use

        On May 17, 2018, as the only Chinese representative, Alibaba was invited to join the JCP-EC, the highest executive committee of the Java Global Management Organization Java Community Process (JCP). Obtaining a seat on the executive committee this time allows Chinese companies to join the formulation of Java global standards for the first time. More "Chinese standards" are expected to become global norms. The seat will take effect on May 24.

        JCP was established in 1998. It is an open international technical standards organization whose responsibility is to develop and update Java technical specifications. The 24-member Executive Committee JCP-EC is the organization's highest decision-making body and is responsible for planning the direction of Java's technology evolution. Members of the EC are elected by a vote of JCP members.

        Alibaba released the "Alibaba Java Development Protocol" to the world. This protocol brings together the wisdom and experience of many Chinese engineers and can help global developers achieve more efficient, more fault-tolerant, and more collaborative Java development.

        To put it simply, it makes your code more standardized, improves development efficiency, and facilitates subsequent development or maintenance by others.

2. Download

Idea Download Read from Figure 3 below and download the plug-in directly.

GitHub download stamp》》》2022P3C Huangshan Edition

Offline download click》》》Alibaba Code Standard Plug-in

3. Installation

After clicking the link, the webpage will appear as shown in the picture

 After clicking download, the installation steps will pop up.

 

After following the steps, restart

After restarting, I found that the installation has been completed.

use

 4. Scanning explanation

        If you click on the current project, all non-standard items under the current project will be scanned; if you click on a certain class and then click Coding Convention Scan, the non-standard items on the current class will be scanned. After scanning the code, the plug-in will display the code that does not comply with the specifications below in three levels: Blocker/Critical/Major.
        Blocker: Blocker, change immediately.
        Critical: critical, change it immediately.
        Major: Major, change later.

        If there is a problem with Chinese garbled characters : You can set Appearance&Behavior -> Appearance -> UI Options -> Name to Microsoft Yahei Light or other fonts you like.

        If you want to customize the scan: you can use File->Settings->Editor->inspections, and you can select constraints according to your own requirements.

Five, nagging

        Applicable scenarios for this plug-in: Individuals want to standardize the code or the company requires standardized development. This is to standardize your own development habits and make it easier for others to read your code.

        Non-essential use. For example, I had a Major error above and asked me to add comments to the interface, but I did not add them because my project is only developed and maintained by myself and does not involve other people. However, if someone else takes over one day, they may not be able to understand the function of my method.

       It is recommended that you standardize your development habits instead of asking plug-ins to remind you. After all, plug-ins also require people to develop and maintain them. If updates are not timely, problems in development may not be discovered, and production may be delayed. 

        The following shows the standard interface development

In this way, the function of the method and the developer can be quickly seen, making it easier for others to read and quickly find the responsible person when an error is reported in the project.

6. Link failure or version mismatch

 6.1. Link failure

        When the plug-in link of Idea fails, you can search for Alibaba Java Coding  on the official website of Idea  , and the plug-in will appear. You can choose to download it yourself.

6.2. Version mismatch

         The plug-in I use has a version mismatch problem with version 23.1. You can change the plug-in. For example the following

Guess you like

Origin blog.csdn.net/weixin_52255395/article/details/130583199