DocumentationCop

The DocumentationCop ensures that AL code is properly documented and that non-obvious patterns are explained. It requires comments on constructs that would otherwise confuse future developers and validates the presence and correctness of XML documentation. These rules do not change runtime behavior but improve code clarity and maintainability.

Rules

IDTitleSeverityEnabledCode Fix
DC0001Commit requires a comment explaining whyInfo
DC0002Writing to a FlowField requires a comment explaining whyInfo
DC0003Empty statements should be removed or documentedInfo
DC0004Public procedures must include XML documentation commentsInfo
DC0005XML documentation must match the procedure signatureInfo
DC0006Internal procedures must include XML documentation commentsHidden
DC0007Public objects must include XML documentation commentsInfo
DC0008Internal objects must include XML documentation commentsHidden
DC0009Events must include XML documentation commentsHidden
DC0010Internal events must include XML documentation commentsHidden