Rules that are related to code documentation.
Table of Contents ApexDocSince: PMD 6.8.0
Priority: Medium (3)
This rule validates that:
reportPrivate
and reportProtected
.reportMissingDescription
.reportProperty
is enabled. By setting reportProperty
to false, you can ignore missing comments on properties.Method overrides and tests are both exempted from having ApexDoc.
This rule is defined by the following Java class: net.sourceforge.pmd.lang.apex.rule.documentation.ApexDocRule
Example(s):
/**
* @description Hello World
*/
public class HelloWorld {
/**
* @description Bar
* @return Bar
*/
public Object bar() { return null; }
}
This rule has the following properties:
Name Default Value Description reportPrivate false Report private classes, methods and properties reportProtected false Report protected classes, methods and properties reportMissingDescription true Report missing @description reportProperty true Report properties without commentsUse this rule with the default properties by just referencing it:
<rule ref="category/apex/documentation.xml/ApexDoc" />
Use this rule and customize it:
<rule ref="category/apex/documentation.xml/ApexDoc">
<properties>
<property name="reportPrivate" value="false" />
<property name="reportProtected" value="false" />
<property name="reportMissingDescription" value="true" />
<property name="reportProperty" value="true" />
</properties>
</rule>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4