From bf2994e3ee197036125217fc1d3fb9bfb1867402 Mon Sep 17 00:00:00 2001 From: Arthur van de Vondervoort Date: Sun, 15 Nov 2026 18:14:48 +0100 Subject: [PATCH] docs(DC0007,DC0008): extension objects require documentation Extension objects have no Access property, so they always count as public: DC0007 reports undocumented ones and DC0008 never does. Co-Authored-By: Claude Fable 5.1 --- content/docs/analyzers/DocumentationCop/DC0007.md | 2 +- content/docs/analyzers/DocumentationCop/DC0008.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/analyzers/DocumentationCop/DC0007.md b/content/docs/analyzers/DocumentationCop/DC0007.md index fd33eb7..3d49e67 100644 --- a/content/docs/analyzers/DocumentationCop/DC0007.md +++ b/content/docs/analyzers/DocumentationCop/DC0007.md @@ -50,7 +50,7 @@ codeunit 50100 MyCodeunit ### When the diagnostic is reported -- The object has no `Access` property or is declared with `Access = Public`. +- The object has no `Access` property or is declared with `Access = Public`. Extension objects (`tableextension`, `pageextension`, `reportextension`, `enumextension`, `permissionsetextension`, `profileextension` and `pagecustomization`) cannot carry an `Access` property, so they are always public and fall under this rule. - The object has no XML documentation comments immediately preceding its declaration. ### Code documentation comments diff --git a/content/docs/analyzers/DocumentationCop/DC0008.md b/content/docs/analyzers/DocumentationCop/DC0008.md index 4ef3096..b2aebb4 100644 --- a/content/docs/analyzers/DocumentationCop/DC0008.md +++ b/content/docs/analyzers/DocumentationCop/DC0008.md @@ -45,7 +45,7 @@ If the object is not meant to be consumed by other objects, consider reducing it ### When the diagnostic is reported -- The object is declared with `Access = Internal`. +- The object is declared with `Access = Internal`. Extension objects cannot carry an `Access` property, so they are always public and are reported by [DC0007](../dc0007/) instead. - The object has no XML documentation comments immediately preceding its declaration. ### Code documentation comments