Skip to content

doc-partial-summary-text

C#styleno fixdefault: offcsharp/stylecop

Reports a partial type or method whose <summary> (or <content>) has no text. Each part is checked on its own. No fix.

An empty summary is shown in a list or a hover as no description, and it hides that nobody wrote one.

To fix, write the summary.

Reported
...
/// <remarks>Partial without summary.</remarks>
...
/// <summary></summary>
public partial class PartialEmptySummary { }
/// <content>Content.</content>
public partial class PartialContent { }
/// <content></content>
public partial class PartialEmptyContent { }
/// <inheritdoc />
public partial class PartialInherited { }
...
csharp:
lint:
rules:
doc-partial-summary-text: warn # off (default), warn, error

Enabled by the presets: csharp/stylecop.

Suppress one line with sudsy-disable-next-line doc-partial-summary-text in a comment of the file’s language.

The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.

Tool Rule Match What differs
StyleCop SA1607 partial each part is checked on its own; StyleCop’s partial rules also read the other parts through the project