Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 737 Bytes

File metadata and controls

35 lines (27 loc) · 737 Bytes

GCop 511

"Either remove the parameter documentation node, or describe it properly."

Rule description

The <param> tag should be used in the comment for a method declaration to describe one of the parameters for the method. The text for the <param> tag will be displayed in IntelliSense, the Object Browser, and in the Code Comment Web Report, so it should be descriptive enough for caller.

Example

///<param name="myParam">the myParam</param>
public void MyMethod(int myParam)
{
    ...
}

should be 🡻

///<param name="myParam">Some actual description....</param> 
public void MyMethod(int myParam)
{
    ...
}

OR 🡻

public void MyMethod(int myParam)
{
    ...
}