[ANN] Announcing GMetrics 0.3 - Source Code Metrics for Groovy
The GMetrics project provides calculation
and reporting of size and complexity metrics for Groovy source code.
GMetrics provides an AntTask that scans Groovy source code,
applying a set of metrics, and generates an HTML or XML report of the
GMetrics includes total, average,
minimum and maximum values for four metrics:
A new SingleSeriesHtmlReportWriter. Creates
HTML report for single series (univariate) of metric values. This single series is
specified by a Metric, a level (package, class or method) and a single
function (total, average, minimum, maximum). e.g., metric:"ABC", function:"average", level:"method". It also supports
other options, e.g. greaterThan:"50", lessThan:"100", sort:"descending", maxResults:"20".
can create reports such as:
average cyclomatic complexity for all classes.
top 20 classes by number of source lines.
methods with an ABC size/complexity score greater than
BasicHtmlReportWriter and XmlReportWriter:
Add support for filtering metric values included within the reports by metric
name, level ("package", "class" and "method") or function ("total", "average",
"minimum" and "maximum"). e.g.,