doc-value-text
What it does
Section titled “What it does”Reports a property’s <value> without text (<value></value>; <value /> is not reported). A comment with <inheritdoc /> is not reported. No fix.
Why it matters
Section titled “Why it matters”An empty <value> is a placeholder: it satisfies a check that the tag exists and gives the reader nothing about what the property holds.
To fix, describe the value.
Example
Section titled “Example”...{ /// <summary>Gets the value.</summary> /// <value></value> public int EmptyValue { get; } /// <summary>Gets the value.</summary> /// <value /> public int SelfClosingValue { get; }... /// <summary>Gets the value.</summary> /// <value> /// </value> public int BlankValue { get; } /// <summary>Gets the value.</summary> /// <value></value> /// <inheritdoc />...Configuration
Section titled “Configuration”csharp: lint: rules: doc-value-text: warn # off (default), warn, errorEnabled by the presets: csharp/stylecop.
Suppress one line with sudsy-disable-next-line doc-value-text in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| StyleCop | SA1610 |
full |