Files
codeql/cpp/ql/src/Metrics/Functions/FunLinesOfComments.qhelp
2018-08-02 17:53:23 +01:00

29 lines
972 B
XML

<!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>