doc-param-has-name
What it does
Section titled “What it does”Reports a <param> in a documentation comment that has no name attribute, or an empty one. No fix.
Why it matters
Section titled “Why it matters”The name is how the tools connect the text to a parameter. A <param> without it is documentation that tells the IDE nothing and is shown nowhere.
To fix, add name="value" with the name of the parameter.
Example
Section titled “Example”...public class Parameters{ /// <summary>Sets.</summary> /// <param>No name.</param> /// <param name="">Empty name.</param>... /// <param name="c">Good.</param>... private void PrivateParams(int a) { } /// <summary>Delegate.</summary>... /// <param>No name.</param> public delegate void Callback(int a); /// <summary>Constructor.</summary>... public Parameters(int a) { } /// <summary>Indexer.</summary>... /// <param>No name.</param> public int this[int a] => a;}Configuration
Section titled “Configuration”csharp: lint: rules: doc-param-has-name: warn # off (default), warn, errorEnabled by the presets: csharp/stylecop.
Suppress one line with sudsy-disable-next-line doc-param-has-name 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 | SA1613 |
full |