mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
17 lines
476 B
Plaintext
17 lines
476 B
Plaintext
/**
|
|
* @name Lines of comment per method
|
|
* @description Methods with few lines of comment might not have sufficient documentation to make them understandable.
|
|
* @kind treemap
|
|
* @treemap.warnOn lowValues
|
|
* @metricType callable
|
|
* @metricAggregate avg sum max
|
|
* @tags maintainability
|
|
* documentation
|
|
* @id cs/lines-of-comment-per-function
|
|
*/
|
|
import csharp
|
|
|
|
from Callable c
|
|
where c.isSourceDeclaration()
|
|
select c, c.getNumberOfLinesOfComments() as n
|
|
order by n desc |