IDEA installs the Ali code specification check plugin
Tips before viewing:
The IDEA version used in this article is ultimate 2019.1.
Recently, the company requires a code specification check, and I want to self-check it in advance. At this time, the Ali code specification check plugin is the best choice.
The next step is to explain the steps of how to install the Ali code specification check plugin.
1. Install the plugin
File->Settings…
Select Plugins->Maketplace->Search box and enter Alibaba->Find Alibaba Java Coding Guidelines->Install
Restart IDEA, Restart IDE.
2. Download and install the local zip package plugin
Click on the official website link
Start the installation after the download is complete
File->Settings...->Plugins->Click the settings icon (small gear)->Install Plugin from Disk...
Select the zip package plug-in (note, preferably in the pure English path) ->OK
restart IDEA, Restart IDE
3. Code inspection
First of all, you can go to Tools->Ali Coding Protocol->Switch Chinese and English
You can check the code by right-clicking on the project -> Scanning Code.
The inspection results and prompts are shown in the figure below.