inheritdoc-on-inheriting-member
What it does
Section titled “What it does”Reports <inheritdoc /> without cref on a type that has no base list, or on a member that neither overrides nor implements anything. A constructor whose signature matches a base constructor is not reported. No fix.
Why it matters
Section titled “Why it matters”inheritdoc takes the documentation from what the member inherits. If it inherits nothing, the tool has no text to copy, and the member is shown without documentation although the comment looks complete.
To fix, write the documentation, or name the source with cref.
Example
Section titled “Example”... Debug.Assert(true, "why");... } /// <inheritdoc/> public void Own() { } }}...... Debug.Assert(true, "why");... } /// <inheritdoc/> public void Own() { } }}...Configuration
Section titled “Configuration”csharp: lint: rules: inheritdoc-on-inheriting-member: warn # off (default), warn, errorEnabled by the presets: csharp/stylecop.
Suppress one line with sudsy-disable-next-line inheritdoc-on-inheriting-member 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 | SA1648 |
full |