forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunLinesOfComments.qhelp
More file actions
28 lines (23 loc) · 972 Bytes
/
FunLinesOfComments.qhelp
File metadata and controls
28 lines (23 loc) · 972 Bytes
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
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>This metric measures the number of lines of comments in a function. </p>
<p>Functions that have too few comments are more likely to be insufficiently documented.
Long, complex functions that have no comments at all require particular scrutiny, as these are more likely
to need explicit documentation in comments.</p>
</overview>
<recommendation>
<p>Functions with few to no comments should be examined to see if they require documentation. Particular attention
should be given to long, complex functions.</p>
</recommendation>
<references>
<li>
<a href="http://en.wikibooks.org/wiki/C%2B%2B_Programming/Programming_Languages/C%2B%2B/Code/Style_Conventions#Comments">C++ Programming, Coding style conventions</a>
</li>
<li>
<a href="http://en.wikipedia.org/wiki/Comment_%28computer_programming%29#Need_for_comments">Wikipedia: Need for comments</a>
</li>
</references>
</qhelp>