-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathXmldocExtraParam.qhelp
39 lines (29 loc) · 1.23 KB
/
XmldocExtraParam.qhelp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>
Documentation comments for public methods and constructors should use the <code><param></code> tag to
describe the available parameters. If the comment includes any empty, incorrect or outdated parameter
names then this will make the documentation more difficult to read.
</p>
</overview>
<recommendation>
<p>The documentation comment for a method or constructor should always use non-empty <code><param></code>
values that match actual parameter names.</p>
</recommendation>
<example>
<p>The following example shows a documentation comment that references an out of date name <code>amount</code> in
its <code><param></code> tag, which should be renamed to <code>incrementBy</code>.</p>
<sample src="XmldocExtraParam.cs" />
</example>
<references>
<li>
MSDN, C# Programming Guide:
<a href="http://msdn.microsoft.com/en-us/library/b2s063f7.aspx">XML Documentation Comments</a>,
<a href="http://msdn.microsoft.com/en-us/library/z04awywx.aspx">How to: Use the XML Documentation Features</a>,
<a href="http://msdn.microsoft.com/en-us/library/5ast78ax.aspx">Recommended Tags for Documentation Comments</a>.
</li>
</references>
</qhelp>