File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * @name Number of lines
3+ * @kind treemap
4+ * @description The number of lines in each file.
5+ * @treemap.warnOn highValues
6+ * @metricType file
7+ * @metricAggregate avg sum max
8+ * @precision very-high
9+ * @id rb/lines-per-file
10+ * @tags maintainability
11+ */
12+
13+ import ruby
14+
15+ from File f , int n
16+ where n = f .getMetrics ( ) .getNumberOfLines ( )
17+ select f , n order by n desc
Original file line number Diff line number Diff line change 1+ /**
2+ * @name Lines of comments in files
3+ * @kind treemap
4+ * @description Files with few lines of comment might not have sufficient documentation to make them understandable.
5+ * @treemap.warnOn lowValues
6+ * @metricType file
7+ * @metricAggregate avg sum max
8+ * @precision very-high
9+ * @id rb/lines-of-comments-in-files
10+ * @tags documentation
11+ */
12+
13+ import ruby
14+
15+ from File f , int n
16+ where n = f .getMetrics ( ) .getNumberOfLinesOfComments ( )
17+ select f , n order by n desc
You can’t perform that action at this time.
0 commit comments