Skip to content

no-default-summary

C#styleno fixdefault: offcsharp/stylecop

Reports a <summary> that starts with the text Visual Studio generates, “Summary description for …”. A comment with <inheritdoc /> is not reported. No fix.

The text is a placeholder that the tool inserts. It stays in the generated documentation as a sentence that says nothing about the element.

To fix, write the real summary.

Reported
...
}
/// <summary>Summary description for Defaults.</summary>
public class Defaults
{
/// <summary>
/// Summary description for Method.
/// </summary>
...
/// <summary>summary description for lower case</summary>
public void LowerCase() { }
/// <summary>
/// Summary description for indented.
/// </summary>
...
/// <inheritdoc />
public partial class PartialInherited { }
/// <summary>Summary description for PartialDefault.</summary>
public partial class PartialDefault { }
/// <remarks>Internal partial.</remarks>
...
csharp:
lint:
rules:
no-default-summary: warn # off (default), warn, error

Enabled by the presets: csharp/stylecop.

Suppress one line with sudsy-disable-next-line no-default-summary in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
StyleCop SA1608 full