Idea Code Specification Plugin

Source: Internet
Author: User

Objective

In the process of work, everyone's code habits are different, work together to do the same project, if according to their own habits, it is possible to cause code maintenance difficulties, slow development progress and so on.

The importance of code specification

The code specification, published by Google, states that 80% of the missing is caused by 20% of the code. Each person writes the code the thought way, the thought, the method is different, the technical level also is different, at this time really needs to have the more formal code standard as the restraint. At this time I think of many years ago saw a piece of code, no line-break, a line of writing, hundreds of words of code, no wonder that the big companies have to specify the number of each line of code up to 80-120 characters in English.

Limitations of code Specifications

Listen to a friend mentioned a thing, a team of managers have developed a set of code specifications, or is applicable to his code specification, because his own technology stays in the 10 years ago, so code norms will naturally stay in that era of thinking, and eventually lead to the ability of a few programmers of the group to run away. This thing reminds me of "the world cropland" in a scene, Zhejiang Governor Tang Sixun Evaluation official "no point personality, is do not good officer", this evaluation I think similar to the programmer.

Code specification itself is not the right and wrong choice, but combined with a lot of people in the work of the problems encountered in the analysis, summary, through a certain rule constraints to avoid the recurrence of similar problems. Therefore, the code specification is rigorous, not a non-important work, not affair, nor the light has code specification is enough.

At this point, there must be some code specification, to unify the team code; Ieda, there is a plugin (Alibaba Java Coding Guidelines) to help us to solve the problem;

In Ieda, File->settings->plugins, and then search for Alibaba, the following interface will appear, we just need to download, install, and then restart our idea can be used;

In the place where we want to check the code, we just need to right-click to see that there is a "code contract scan", you can check it, if there are non-conforming, it will be shown below.

You are welcome to pay attention to the public number, not regular dry goods, only to do a valuable output

Dawnzhang
Source: Https://www.cnblogs.com/clwydjgs
Copyright: Copyright of this article to the author
Reprint: Welcome reprint, but without the consent of the author, this paragraph must be retained; The original link must be given in the article; otherwise, legal liability

Idea Code Specification Plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.