Java代碼偵查工具PMD規則集翻譯合集

來源:互聯網
上載者:User

mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times
New Roman';">以下內容為 PMD mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times
New Roman';">檢查規則及翻譯,錯漏之處在所難免,歡迎指正!—— Roman;">jack0511

 

Roman;">PMD是一個JAVA代碼檢查工具,官方首頁: http://pmd.sourceforge.net/

Roman;">

Roman;">它的規則集主要包含:(點選連結進入具體內容及翻譯

  • Basic Rules : The Basic Ruleset contains a collection of good practices which everyone should follow.
  • Braces Rules : The Braces Ruleset contains a collection of braces rules.
  • Clone Implementation Rules : The Clone Implementation ruleset contains a collection of rules that find questionable usages of the clone() method.
  • Code Size Rules : The Code Size Ruleset contains a collection of rules that find code size related problems.
  • Controversial Rules : The Controversial Ruleset contains rules that, for whatever reason, are considered controversial. They are separated out here to allow people to include as they see fit via custom rulesets. This ruleset was initially created in response to discussions over UnnecessaryConstructorRule which Tom likes but most people really dislike
  • Coupling Rules : These are rules which find instances of high or inappropriate coupling between objects and packages.
  • Design Rules : The Design Ruleset contains a collection of rules that find questionable designs.
  • Finalizer Rules : These rules deal with different problems that can occur with finalizers.
  • Import Statement Rules : These rules deal with different problems that can occur with a class' import statements.
  • J2EE Rules : These are rules for J2EE
  • JavaBean Rules : The JavaBeans Ruleset catches instances of bean rules not being followed.
  • JUnit Rules : These rules deal with different problems that can occur with JUnit tests.
  • Jakarta Commons Logging Rules : The Jakarta Commons Logging ruleset contains a collection of rules that find questionable usages of that framework.
  • Java Logging Rules : The Java Logging ruleset contains a collection of rules that find questionable usages of the logger.
  • Migration Rules : Contains rules about migrating from one JDK version to another. Don't use these rules directly, rather, use a wrapper ruleset such as migrating_to_13.xml.
  • Naming Rules : The Naming Ruleset contains a collection of rules about names - too long, too short, and so forth.
  • Optimization Rules : These rules deal with different optimizations that generally apply to performance best practices.
  • Strict Exception Rules : These rules provide some strict guidelines about throwing and catching exceptions.
  • String and StringBuffer Rules : These rules deal with different problems that can occur with manipulation of the class String or StringBuffer.
  • Security Code Guidelines : These rules check the security guidelines from Sun, published at http://java.sun.com/security/seccodeguide.html#gcg
  • Type Resolution Rules : These are rules which resolve java Class files for comparisson, as opposed to a String
  • Unused Code Rules : The Unused Code Ruleset contains a collection of rules that find unused code.

Roman;">

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.