Alibaba Java Coding Guidelines pmd implements and IDE plugin
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
We are pleased to present Alibaba Java Coding Guidelines which consolidates the best programming practices over the years from Alibaba Group's technical teams. A vast number of Java programming teams impose demanding requirements on code quality across projects as we encourage reuse and better understanding of each other's programs. We have seen many programming problems in the past. For example, defective database table structures and index designs may cause software architecture flaws and performance risks. Another example is confusing code structures being difficult to maintain. Furthermore, vulnerable code without authentication is prone to hackers’ attacks. To address these kinds of problems, we developed this document for Java developers at Alibaba.
For more information please refer the Alibaba Java Coding Guidelines: - 中文版: 阿里巴巴Java开发手册- English Version: Alibaba Java Coding Guidelines- 《阿里巴巴Java开发手册》书籍版天猫官方店: 阿里巴巴Java开发手册最新版- 《码出高效》书籍版天猫官方店: 码出高效：Java开发手册
The project consists of 3 parts:
Forty-nine rules are realized based on PMD, please refer the P3C-PMD documentation for more detailed information. Four rules are implemented within IDE plugins (IDEA and Eclipse) as follows:
Using a deprecated class or method is prohibited.
Note: For example, decode(String source, String encode) should be used instead of the deprecated method decode(String encodeStr). Once an interface has been deprecated, the interface provider has the obligation to provide a new one. At the same time, client programmers have the obligation to check out what its new implementation is.
The usage of hashCode and equals should follow:
If you have any questions or comments, please contact junlie by email at [email protected], and please join us to make project P3C perfect for more programmers.
Please follow our WeChat official account as ali_yunxiao below: