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 whyWarning
DC0002Writing to a FlowField requires a comment explaining whyWarning
DC0003Empty statement requires a comment explaining whyWarning
DC0004Public procedure requires XML documentationInfo
DC0005XML documentation must match procedure signatureWarning

Note: Rules marked with “—” in the Enabled column are disabled by default and must be explicitly enabled in your project’s .editorconfig or ruleset file.