-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathFCommentRatio.qhelp
More file actions
29 lines (22 loc) · 920 Bytes
/
FCommentRatio.qhelp
File metadata and controls
29 lines (22 loc) · 920 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
29
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>This metric measures the percentage of lines in a file that contain a comment or are part of a multi-line comment.</p>
<p>Having a low percentage of comments is an indication that a file does not have sufficient
documentation. Undocumented code is hard to understand, modify, and reuse.</p>
</overview>
<recommendation>
<p>Add documentation to files with a low percentage of comments. It is most useful to start
documenting the public functions first.</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>