GMetrics-0.5/0000755001501200150120000000000011705670714012421 5ustar miguelmiguelGMetrics-0.5/LICENSE.txt0000644001501200150120000002644611313060222014236 0ustar miguelmiguel Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. GMetrics-0.5/docs/0000755001501200150120000000000011705670714013351 5ustar miguelmiguelGMetrics-0.5/docs/gmetrics-XmlReportWriter.html0000644001501200150120000003165411705041651021204 0ustar miguelmiguel GMetrics - GMetrics XmlReportWriter

XmlReportWriter

Description

The org.gmetrics.report.XmlReportWriter class produces an XML report of GMetrics results.

See a Sample Report.

Option Nested Elements

The option element is a child of the report element and defines a report-specific option for a report.

org.gmetrics.report.BasicHtmlReportWriter supports the following options:

AttributeDescriptionRequired
functionsThe (comma-separated) list of functions for which results are included in the report for a particular metric. Multiple metrics are configured by separating them with semicolons (;). By default, all functions provided by a metric are included within the report. Any metrics not explicitly configured include all applicable functions as well. ---- Valid function values are metric-specific, but typically include "total", "average", "minimum" and "maximum". ---- For example, a value of "MethodLineCount=minimum,average" for functions includes only the minimum and average function results for the MethodLineCount metric. Likewise, a value of "ABC=average; CyclomaticComplexity=total,maximum" includes the average function results for the ABC metric and the total and maximum function results for the CyclomaticComplexity metric. Note that all functions provided by any other metrics (not configured) are included.No
levelsThe (comma-separated) list of levels at which results are included in the report for a particular metric. Multiple metrics are configured by separating them with semicolons (;). By default, all levels are included for all metrics within the report. Any metrics not explicitly configured include all applicable levels as well. ---- Valid level values are "package", "class" and "method". ---- For example, a value of "MethodLineCount=class,method" for levels includes only the class and method level results for the MethodLineCount metric. Likewise, a value of "ABC=method; CyclomaticComplexity=package,class" includes the method level results for the ABC metric and the package and class level results for the CyclomaticComplexity metric. Note that all levels are included for any other metrics not explicitly configured.No
metricsThe (comma-separated) list of names of the metrics included in the report. By default, all metrics within the results are included in the report. ---- For example, a metrics value of "ABC, MethodLineCount" includes only the ABC and MethodLineCount metrics within the report.No
outputFileThe path and filename for the output report file.No
titleThe title for the output report.No
writeToStandardOutSet to "true" or true to write out the report to stdout (System.out) instead of writing to a file.No

Example

Here is an example Ant XML build file illustrating configuration of org.gmetrics.report.XmlReportWriter.

<taskdef name="gmetrics" classname="org.gmetrics.ant.GMetricsTask">
<target name="runGMetrics">

    <gmetrics>
        <report type="org.gmetrics.report.XmlReportWriter">
            <option name="outputFile" value="SampleGMetricsXmlReport.html" />
        </report>
        <fileset dir="src">
            <include name="**/*.groovy"/>
        </fileset>
    </gmetrics>

</target>

And here is an example illustrating explicit configuration of the metrics, levels and functions to be included within the report:

<taskdef name="gmetrics" classname="org.gmetrics.ant.GMetricsTask">
<target name="runGMetrics">

    <gmetrics>
        <report type="org.gmetrics.report.XmlReportWriter">
            <option name="outputFile" value="SampleGMetricsXmlReport.html" />
            <option name="metrics" value="CyclomaticComplexity, ABC" />
            <option name="levels" value="CyclomaticComplexity=class,method; ABC=method" />
            <option name="functions" value="ABC=average; CyclomaticComplexity=total,maximum" />
        </report>
        <fileset dir="src">
            <include name="**/*.groovy"/>
        </fileset>
    </gmetrics>

</target>

GMetrics-0.5/docs/gmetrics-BasicHtmlReportWriter.html0000644001501200150120000003236611705041650022312 0ustar miguelmiguel GMetrics - GMetrics BasicHtmlReportWriter

BasicHtmlReportWriter

Description

The org.gmetrics.report.BasicHtmlReportWriter class produces an HTML report of metric results in a single HTML table, with one row for each package, class or method (or closure field) and one column for each metric value (function) being calculated.

See a Sample Report.

Option Nested Elements

The option element is a child of the report element and defines a report-specific option for a report.

org.gmetrics.report.BasicHtmlReportWriter supports the following options:

AttributeDescriptionRequired
functionsThe (comma-separated) list of functions for which results are included in the report for a particular metric. Multiple metrics are configured by separating them with semicolons (;). By default, all functions provided by a metric are included within the report. Any metrics not explicitly configured include all applicable functions as well. ---- Valid function values are metric-specific, but typically include "total", "average", "minimum" and "maximum". ---- For example, a value of "MethodLineCount=minimum,average" for functions includes only the minimum and average function results for the MethodLineCount metric. Likewise, a value of "ABC=average; CyclomaticComplexity=total,maximum" includes the average function results for the ABC metric and the total and maximum function results for the CyclomaticComplexity metric. Note that all functions provided by any other metrics (not configured) are included.No
levelsThe (comma-separated) list of levels at which results are included in the report for a particular metric. Multiple metrics are configured by separating them with semicolons (;). By default, all levels are included for all metrics within the report. Any metrics not explicitly configured include all applicable levels as well. ---- Valid level values are "package", "class" and "method". ---- For example, a value of "MethodLineCount=class,method" for levels includes only the class and method level results for the MethodLineCount metric. Likewise, a value of "ABC=method; CyclomaticComplexity=package,class" includes the method level results for the ABC metric and the package and class level results for the CyclomaticComplexity metric. Note that all levels are included for any other metrics not explicitly configured.No
metricsThe (comma-separated) list of names of the metrics included in the report. By default, all metrics within the results are included in the report. ---- For example, a metrics value of "ABC, MethodLineCount" includes only the ABC and MethodLineCount metrics within the report.No
outputFileThe path and filename for the output report file.No
titleThe title for the output report.No
writeToStandardOutSet to "true" or true to write out the report to stdout (System.out) instead of writing to a file.No

Example

Here is an example Ant XML build file illustrating configuration of org.gmetrics.report.BasicHtmlReportWriter.

<taskdef name="gmetrics" classname="org.gmetrics.ant.GMetricsTask">
<target name="runGMetrics">

    <gmetrics>
        <report type="org.gmetrics.report.BasicHtmlReportWriter">
            <option name="outputFile" value="SampleGMetricsReport.html" />
            <option name="title" value="Sample" />
        </report>
        <fileset dir="src">
            <include name="**/*.groovy"/>
        </fileset>
    </gmetrics>

</target>

And here is an example illustrating explicit configuration of the metrics, levels and functions to be included within the report:

<taskdef name="gmetrics" classname="org.gmetrics.ant.GMetricsTask">
<target name="runGMetrics">

    <gmetrics>
        <report type="org.gmetrics.report.BasicHtmlReportWriter">
            <option name="outputFile" value="SampleGMetricsReport.html" />
            <option name="title" value="Sample" />
            <option name="metrics" value="CyclomaticComplexity, ABC" />
            <option name="levels" value="CyclomaticComplexity=class,method; ABC=method" />
            <option name="functions" value="ABC=average; CyclomaticComplexity=total,maximum" />
        </report>
        <fileset dir="src">
            <include name="**/*.groovy"/>
        </fileset>
    </gmetrics>

</target>

GMetrics-0.5/docs/index.html0000644001501200150120000002216411705041651015343 0ustar miguelmiguel GMetrics - GMetrics - Home

GMetrics

The GMetrics project provides calculation and reporting of size and complexity metrics for Groovy source code. GMetrics scans Groovy source code, applying a set of metrics, and generates an HTML report of the results.

You can run GMetrics using the supplied Ant Task.

Total and average values for the following metrics are provided:

See the site navigation menu for a list of the metrics and reports provided out of the box by GMetrics.

Take a look at a Sample GMetrics Report.

Requirements

The GMetrics project requires:

  • Groovy version 1.7 or later
  • Java 1.5 or later
  • The Log4J jar, version 1.2.13 or later, accessible on the classpath.

Getting GMetrics from the Maven2 Central Repository

For projects built using Maven, GMetrics is now available from the Maven Central Repository.

  • groupId = org.gmetrics
  • artifactId = GMetrics

GMetrics-0.5/docs/gmetrics-FieldCountMetric.html0000644001501200150120000002140211705041650021240 0ustar miguelmiguel GMetrics - GMetrics - FieldCount Metric

FieldCount Metric

Metric for counting the number of fields within each class. Note that static final fields (i.e., constants) are included as well.

Implemented by the org.gmetrics.metric.fieldcount.FieldCountMetric class.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the method, class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]

GMetrics-0.5/docs/gmetrics-CoberturaBranchCoverageMetric.html0000644001501200150120000002434311705041650023733 0ustar miguelmiguel GMetrics - GMetrics - CoberturaBranchCoverage Metric

CoberturaBranchCoverage Metric

Metric that measures the code coverage of branches (conditionals) based on a Cobertura coverage XML file.

Implemented by the org.gmetrics.metric.coverage.CoberturaBranchCoverageMetric class.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]
coberturaFileThe path to the Cobertura XML file. By default, the path is relative to the classpath. But the path may be optionally prefixed by any of the valid java.net.URL prefixes, such as "file:" (to load from a relative or absolute path on the filesystem), or "http:". This property is REQUIRED.N/A
packageNamePrefixesOptional, comma-separated list of prefixes that should be stripped from full path names before checking the Cobertura XML file for matching coverage information. For instance, if the GMetrics Ant task is configured to pull in all *.groovy files from "src/main/groovy/**", then all of the package paths will be prefixed with "src/main/groovy", which is not part of the actual package name recorded in the Cobertura XML file. In that case, set the packageNamePrefixes property to "src/main/groovy".null

References

  • Cobertura -- Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage.

GMetrics-0.5/docs/gmetrics-ClassLineCountMetric.html0000644001501200150120000002247311705041650022103 0ustar miguelmiguel GMetrics - GMetrics - ClassLineCount Metric

ClassLineCount Metric

Metric for counting the number of lines for classes. Note that this metric measures the number of lines from the first line of the class to the last line of the class. The count includes all program statements, comment lines and whitespace.

Implemented by the org.gmetrics.metric.linecount.ClassLineCountMetric class.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]

References

  • The The C2 Wiki page for Lines of Code has a good discussion of the perils of using (abusing) lines of code as a measure of just about anything. Note: That page specifically refers to measuring non-comment lines. This metric only measures total lines, including statements, comments and whitespace.

GMetrics-0.5/docs/gmetrics-other-tools-frameworks.html0000644001501200150120000002050211705041651022476 0ustar miguelmiguel GMetrics - GMetrics - Other Tools / Frameworks

GMetrics - Integration with Other Tools / Frameworks

Application Frameworks

Build and Code Quality Tools


GMetrics-0.5/docs/SampleGMetricsReport.html0000644001501200150120000040450411705042210020301 0ustar miguelmiguelGMetrics Report: Sample

GMetrics Report: Sample

Report timestamp: Jan 16, 2012 9:58:22 AM

Metric Results

Package/Class/MethodComplexity (total)Complexity (average)Method Lines (total)Method Lines (average)
[p] All packages6401.725066.5
[p] org6401.725066.5
[p] org/gmetrics6401.725066.5
[c] org.gmetrics.GMetricsRunner11.01919.0
[m] execute111919
[p] org/gmetrics/analyzer131.9598.4
[c] org.gmetrics.analyzer.AnalysisContextN/AN/AN/AN/A
[c] org.gmetrics.analyzer.FilesystemSourceAnalyzer131.9598.4
[m] analyze1188
[m] getSourceDirectories1133
[m] processDirectory441919
[m] processFile331313
[m] applyMetricsToClass1188
[m] matches2244
[m] initializeWildcardPatterns1144
[c] org.gmetrics.analyzer.SourceAnalyzerN/AN/AN/AN/A
[p] org/gmetrics/ant341.51486.7
[c] org.gmetrics.ant.AntFileSetSourceAnalyzer241.61097.3
[m] analyze1177
[m] getSourceDirectories1177
[m] calculatePackageLevelMetricResults1144
[m] calculatePackageLevelMetricResults1155
[m] processFileSet221313
[m] processFile221616
[m] applyMetricsToClass1188
[m] findResultsNodeForPath1133
[m] findPackageResultsNodeForPath2277
[m] findPackageResultsNodeForPath1144
[m] resultFromFirstMatchOrElseNull2277
[m] findOrAddResultsNodeForPath331212
[m] removeBaseDirectoryPrefix2277
[m] removeLeadingSlash3333
[m] <init>1166
[c] org.gmetrics.ant.GMetricsTask91.5366.0
[m] execute221515
[m] addFileset1144
[m] addConfiguredReport221010
[m] createMetricSet2233
[m] createSourceAnalyzer1133
[m] createGMetricsRunner1111
[c] org.gmetrics.ant.Report11.033.0
[m] addConfiguredOption1133
[c] org.gmetrics.ant.ReportOptionN/AN/AN/AN/A
[p] org/gmetrics/formatter41.3196.3
[c] org.gmetrics.formatter.FormatterN/AN/AN/AN/A
[c] org.gmetrics.formatter.FormatterFactory11.066.0
[m] getFormatter1166
[c] org.gmetrics.formatter.PercentageFormatter22.01010.0
[m] format221010
[c] org.gmetrics.formatter.ToStringFormatter11.033.0
[m] format1133
[p] org/gmetrics/metric2411.78866.2
[c] org.gmetrics.metric.AbstractAstVisitor61.5164.0
[m] isFirstVisit2277
[m] sourceLine1133
[m] getSourceUnit1133
[m] isSyntheticNonRunMethod2233
[c] org.gmetrics.metric.AbstractMethodMetric122.45511.0
[m] applyToMethod2277
[m] applyToClosure2277
[m] calculateForClass331616
[m] addClosureFieldsToMetricResults331414
[m] addMethodsToMetricResults221111
[c] org.gmetrics.metric.AbstractMetric81.6234.6
[m] applyToPackage2266
[m] calculateForPackage1144
[m] applyToClass2266
[m] isNotAnInterface1133
[m] createAggregateMetricResult2244
[c] org.gmetrics.metric.AstVisitorN/AN/AN/AN/A
[c] org.gmetrics.metric.MethodMetricN/AN/AN/AN/A
[c] org.gmetrics.metric.MetricN/AN/AN/AN/A
[c] org.gmetrics.metric.MetricLevel31.093.0
[m] getNames1133
[m] toString1133
[m] <init>1133
[p] org/gmetrics/metric/abc671.62315.5
[c] org.gmetrics.metric.abc.AbcAstVisitor331.71045.5
[m] visitMethod3366
[m] visitBinaryExpression1144
[m] visitPrefixExpression1144
[m] visitPostfixExpression1144
[m] visitMethodCallExpression1144
[m] visitPropertyExpression1155
[m] visitConstructorCallExpression1144
[m] visitIfElse2266
[m] visitSwitch2277
[m] visitTryCatchFinally1155
[m] visitTernaryExpression1144
[m] visitBooleanExpression2266
[m] visitNotExpression2266
[m] handleExpressionContainingOperation551212
[m] countUnaryConditionals441313
[m] countUnaryConditionals1144
[m] isSingleVariable1133
[m] isFinalVariableDeclaration2244
[m] isNotEmptyStatement1133
[c] org.gmetrics.metric.abc.AbcMetric51.7196.3
[m] calculate2299
[m] calculate1166
[m] createAggregateMetricResult2244
[c] org.gmetrics.metric.abc.AbcVector41.0194.8
[m] getMagnitude1155
[m] toString1133
[m] squared1133
[m] <init>1188
[p] org/gmetrics/metric/abc/result251.6895.6
[c] org.gmetrics.metric.abc.result.AbcMetricResult41.3155.0
[m] getAt2233
[m] toString1133
[m] <init>1199
[c] org.gmetrics.metric.abc.result.AggregateAbcMetricResult211.6745.7
[m] calculateFunctions551717
[m] getCount1133
[m] getTotalAbcVector1133
[m] getAbcVector1133
[m] getAverageAbcVector1166
[m] getAt1133
[m] toString1133
[m] addChildrenToAbcVector1188
[m] calculateMinimum2244
[m] calculateMaximum2244
[m] includesFunction1133
[m] average3388
[m] <init>1199
[p] org/gmetrics/metric/classcount31.5105.0
[c] org.gmetrics.metric.classcount.ClassCountMetric31.5105.0
[m] calculateForClass1155
[m] calculateForPackage2255
[p] org/gmetrics/metric/coverage891.63706.9
[c] org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric271.91228.7
[m] applyToMethod2277
[m] applyToClosure1144
[m] calculateForClass442121
[m] calculateForPackage551717
[m] calculate1166
[m] getCoverageRatioForClass111010
[m] calculateCoverageForClassAndInnerClasses1144
[m] getOverallPackageMetricValue1144
[m] buildMethodResults331616
[m] calculateMethodResult2299
[m] logMissingMethodCoverageInformation2266
[m] findMethodElement1166
[m] containsClasses1133
[m] getCoberturaCoverageFile2299
[c] org.gmetrics.metric.coverage.CoberturaBranchCoverageMetric41.3268.7
[m] getCoverageRatioForSingleClass221010
[m] findLineElementsWithBranches1133
[m] getBranchCoverageRatio111313
[c] org.gmetrics.metric.coverage.CoberturaCoverageFile211.5896.4
[m] getOverallCoverageRate1144
[m] parseCoverageRate1155
[m] findMatchingPackageElement3377
[m] findPackageElementMatchingPrefix1199
[m] findPackageWithPrefix3388
[m] findPackageElement1144
[m] findClassElement1144
[m] findInnerClasses1144
[m] hasInnerClasses1133
[m] findMethodElement221111
[m] findAllMethodElements2277
[m] getCoberturaXml221010
[m] createNonValidatingXmlSlurper1188
[m] <init>1155
[c] org.gmetrics.metric.coverage.CoberturaLineCoverageMetric31.5157.5
[m] getCoverageRatioForSingleClass221010
[m] getLinesCoverageRatio1155
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser202.0757.5
[m] matchesCoberturaMethod2288
[m] numberOfParameters1133
[m] parseSignatureParameterTypes331616
[m] extractParameters1155
[m] parseCoberturaSignatureParameterTypes2277
[m] parseParameterTypes221212
[m] processStandaloneCharacter441111
[m] processCharacterWithinFullyQualifiedTypeName2288
[m] classNameNoPackage2244
[m] <init>1111
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser$ParseContext81.3233.8
[m] startFullyQualifiedTypeName1133
[m] withinFullyQualifiedTypeName1133
[m] appendToFullyQualifiedTypeName1133
[m] terminateFullyQualifiedTypeName2266
[m] startNewArrayType1133
[m] processPrimitiveTypeCode2255
[c] org.gmetrics.metric.coverage.Ratio61.2204.0
[m] plus1144
[m] toBigDecimal2244
[m] asType1144
[m] toString1144
[m] <init>1144
[p] org/gmetrics/metric/crap103.33612.0
[c] org.gmetrics.metric.crap.CrapMetric103.33612.0
[m] calculate1144
[m] calculate662424
[m] calculateCrapScore3388
[p] org/gmetrics/metric/cyclomatic181.5584.8
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityAstVisitor141.4464.6
[m] visitMethod3388
[m] visitIfElse1144
[m] visitWhileLoop1144
[m] visitForLoop1144
[m] visitSwitch1144
[m] visitCatchStatement1144
[m] visitBinaryExpression1144
[m] visitTernaryExpression1144
[m] visitPropertyExpression2244
[m] handleExpressionContainingOperation2266
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityMetric42.0126.0
[m] calculate2266
[m] calculate2266
[p] org/gmetrics/metric/fieldcount62.0196.3
[c] org.gmetrics.metric.fieldcount.FieldCountAstVisitor42.0105.0
[m] getNumberOfFields1133
[m] visitClass3377
[c] org.gmetrics.metric.fieldcount.FieldCountMetric22.099.0
[m] calculateForClass2299
[p] org/gmetrics/metric/linecount122.0386.3
[c] org.gmetrics.metric.linecount.ClassLineCountMetric22.099.0
[m] calculateForClass2299
[c] org.gmetrics.metric.linecount.ClassLineCountAstVisitor22.066.0
[m] visitClass2266
[c] org.gmetrics.metric.linecount.MethodLineCountAstVisitor52.5126.0
[m] visitMethod3366
[m] visitClosureExpression2266
[c] org.gmetrics.metric.linecount.MethodLineCountMetric31.5115.5
[m] calculate2266
[m] calculate1155
[p] org/gmetrics/metric/methodcount72.3217.0
[c] org.gmetrics.metric.methodcount.MethodCountAstVisitor52.5126.0
[m] getNumberOfMethods1133
[m] visitClass4499
[c] org.gmetrics.metric.methodcount.MethodCountMetric22.099.0
[m] calculateForClass2299
[p] org/gmetrics/metricregistry31.0165.3
[c] org.gmetrics.metricregistry.DefaultMetricRegistry31.0165.3
[m] getMetricClass1144
[m] getAllMetricNames1144
[m] buildMetricClassMap1188
[c] org.gmetrics.metricregistry.MetricRegistryN/AN/AN/AN/A
[c] org.gmetrics.metricregistry.MetricRegistryHolderN/AN/AN/AN/A
[p] org/gmetrics/metricset281.11435.7
[c] org.gmetrics.metricset.CompositeMetricSet31.0113.7
[m] addMetric1144
[m] addMetricSet1144
[m] getMetrics1133
[c] org.gmetrics.metricset.DefaultMetricSet11.033.0
[m] getMetrics1133
[c] org.gmetrics.metricset.GroovyDslMetricSet21.02110.5
[m] getMetrics1133
[m] <init>111818
[c] org.gmetrics.metricset.ListMetricSet21.0105.0
[m] getMetrics1133
[m] <init>1177
[c] org.gmetrics.metricset.MetricSetN/AN/AN/AN/A
[c] org.gmetrics.metricset.MetricSetBuilder21.073.5
[m] metricset1144
[m] getMetricSet1133
[c] org.gmetrics.metricset.TopLevelDelegate141.2705.8
[m] metricset1144
[m] metricset111010
[m] metric1155
[m] metric1166
[m] metric111010
[m] propertyMissing1155
[m] methodMissing221010
[m] description1144
[m] getMetricSet1133
[m] assertClassImplementsMetricInterface1144
[m] addMetric2266
[m] isNotWithinAnotherMetricDefinition1133
[c] org.gmetrics.metricset.MetricSetDelegate41.3217.0
[m] methodMissing221515
[m] findMetric1133
[m] <init>1133
[p] org/gmetrics/report1321.66488.0
[c] org.gmetrics.report.AbstractMetricCriteriaFilterN/AN/AN/AN/A
[c] org.gmetrics.report.AbstractReportWriter201.7766.3
[m] writeReport221414
[m] writeReportToStandardOut1144
[m] writeReportToFile2288
[m] initializeDefaultResourceBundle221212
[m] getResourceBundleString2299
[m] getResourceBundleStringOrNull2299
[m] initializeFormatters2277
[m] formatMetricResultValue2244
[m] getFormattedTimestamp1144
[m] isWriteToStandardOut2233
[m] initializeResourceBundle1111
[m] getTimestamp1111
[c] org.gmetrics.report.BasicHtmlReportWriter271.816811.2
[m] writeReport111717
[m] buildMetricResultColumns221111
[m] buildCSS1188
[m] buildHeaderSection1188
[m] buildBodySection111111
[m] buildReportTimestamp1166
[m] buildResultsTable221717
[m] getMetricResultColumnHeading1144
[m] buildResultsTableRowRecursively883030
[m] buildResultsRowForLevel2299
[m] prefixForResultsNodeLevel1188
[m] buildMetricDescriptions222424
[m] getDescriptionForMetricName1144
[m] buildVersionFooter1188
[m] buildTitle2233
[c] org.gmetrics.report.FunctionsCriteriaFilter21.063.0
[m] setFunctions1133
[m] includesFunction1133
[c] org.gmetrics.report.LevelsCriteriaFilter21.063.0
[m] setLevels1133
[m] includesLevel1133
[c] org.gmetrics.report.MetricCriteriaFilterHelper61.5235.8
[m] includesName3377
[m] parseCriteria1177
[m] parseCriteriaForSingleMetric1166
[m] parseCommaSeparatedList1133
[c] org.gmetrics.report.MetricsCriteriaFilter31.563.0
[m] setMetrics1133
[m] includesMetric2233
[c] org.gmetrics.report.ReportWriterN/AN/AN/AN/A
[c] org.gmetrics.report.SeriesValue21.073.5
[m] toString1133
[m] <init>1144
[c] org.gmetrics.report.SingleSeriesCriteriaFilter331.91317.7
[m] buildSeriesData112020
[m] findMatchingValuesForChildren1166
[m] getResultsNodeFullName331414
[m] findMatchingValues441515
[m] sortValuesIfApplicable3399
[m] limitToGreaterThanIfApplicable2277
[m] limitToLessThanIfApplicable2277
[m] limitToMaxResultsIfApplicable3399
[m] assertMetricExists1144
[m] assertLevelExists1133
[m] assertFunctionExists1144
[m] assertValidSortValue2233
[m] assertValidMaxResultsValue331111
[m] assertValidGreaterThanValue1133
[m] assertValidLessThanValue1133
[m] assertValidNumberValue331010
[m] findMetric1133
[c] org.gmetrics.report.SingleSeriesHtmlReportWriter111.1969.6
[m] writeReport111818
[m] buildHeaderSection1188
[m] buildCSS1188
[m] buildBodySection221313
[m] buildReportTimestamp1166
[m] buildResultsTable111313
[m] getSeriesValueNameHeading1199
[m] buildSeriesValueRow1199
[m] getMetricResultColumnHeading1144
[m] buildVersionFooter1188
[c] org.gmetrics.report.XmlReportWriter261.71298.6
[m] writeReport111717
[m] buildReportElement1155
[m] buildProjectElement1199
[m] buildPackageElements1133
[m] buildElement4477
[m] buildPackageElement552020
[m] buildClassElement111010
[m] buildMethodElement111010
[m] buildMetricElements1177
[m] buildMetricElement551414
[m] isRoot1133
[m] buildMetricsElement111414
[m] getDescriptionForMetric1144
[m] isPackage1133
[m] cdata1133
[p] org/gmetrics/result391.51254.8
[c] org.gmetrics.result.ClassMetricResult21.073.5
[m] toString1133
[m] <init>1144
[c] org.gmetrics.result.FunctionNamesN/AN/AN/AN/A
[c] org.gmetrics.result.MethodKey61.2234.6
[m] equals2244
[m] hashCode1144
[m] toString1144
[m] <init>1155
[m] <init>1166
[c] org.gmetrics.result.MetricResultN/AN/AN/AN/A
[c] org.gmetrics.result.MetricResultBuilder231.8644.9
[m] createAggregateMetricResult111313
[m] toString1133
[m] calculateFunctions111010
[m] calculateCount1133
[m] total2233
[m] calculateTotal2255
[m] minimum2233
[m] calculateMinimum2244
[m] maximum2233
[m] calculateMaximum2244
[m] average2233
[m] calculateAverage3377
[m] shouldCalculateFunction2233
[c] org.gmetrics.result.NumberMetricResult41.3165.3
[m] getAt2233
[m] toString1133
[m] <init>111010
[c] org.gmetrics.result.SingleNumberMetricResult41.3155.0
[m] getAt2233
[m] toString1133
[m] <init>1199
[p] org/gmetrics/resultsnode271.2994.5
[c] org.gmetrics.resultsnode.ClassResultsNode81.3294.8
[m] containsClassResults1133
[m] getMetricResult1144
[m] addClassMetricResult221010
[m] toString1133
[m] addMethodMetricResult2266
[m] <init>1133
[c] org.gmetrics.resultsnode.MethodResultsNode71.0243.4
[m] containsClassResults1133
[m] getMetricResult1144
[m] addMetricResult1144
[m] getChildren1133
[m] toString1133
[m] <init>1133
[m] <init>1144
[c] org.gmetrics.resultsnode.PackageResultsNode121.3465.1
[m] getChildren1133
[m] containsClassResults1133
[m] getMetricResult1144
[m] addChildIfNotEmpty2277
[m] addChild1155
[m] applyMetric331414
[m] toString1133
[m] <init>1133
[m] <init>1144
[c] org.gmetrics.resultsnode.ResultsNodeN/AN/AN/AN/A
[p] org/gmetrics/source372.11116.2
[c] org.gmetrics.source.AbstractSourceCode162.7518.5
[m] getLines2266
[m] line3355
[m] getAst331616
[m] getLineNumberForCharacterIndex551616
[m] isValid1133
[m] normalizePath2255
[c] org.gmetrics.source.SourceCodeN/AN/AN/AN/A
[c] org.gmetrics.source.SourceCodeCriteria88.01717.0
[m] matches881717
[c] org.gmetrics.source.SourceFile71.2254.2
[m] getName1133
[m] getPath1133
[m] getText2266
[m] toString1133
[m] createSourceUnit1155
[m] <init>1155
[c] org.gmetrics.source.SourceString61.2183.6
[m] getText1133
[m] setPath2233
[m] toString1133
[m] createSourceUnit1133
[m] <init>1166
[p] org/gmetrics/util812.42336.9
[c] org.gmetrics.util.AstUtil382.5946.3
[m] isEmptyMethod1133
[m] isClosureField2233
[m] isBlock1133
[m] isEmptyBlock4455
[m] getMethodArguments331010
[m] isMethodCall331010
[m] isMethodCall2244
[m] isMethodCall3399
[m] isMethodNamed1144
[m] getAnnotation2266
[m] getVariableExpressions991616
[m] isFinalVariable441414
[m] isFromGeneratedSourceCode1133
[m] respondsTo1133
[m] <init>1111
[c] org.gmetrics.util.GMetricsVersion11.033.0
[m] getVersion1133
[c] org.gmetrics.util.PathUtil132.6336.6
[m] getName3377
[m] getParent3399
[m] normalize2233
[m] toPackageName441313
[m] <init>1111
[c] org.gmetrics.util.PropertyUtil63.02311.5
[m] setPropertyFromString552222
[m] <init>1111
[c] org.gmetrics.util.WildcardPattern133.34611.5
[m] matches4477
[m] containsWildcards1133
[m] convertStringWithWildcardsToRegex552424
[m] <init>331212
[p] org/gmetrics/util/io101.4344.9
[c] org.gmetrics.util.io.ClassPathResource41.3144.7
[m] getInputStream1133
[m] getInputStream2277
[m] <init>1144
[c] org.gmetrics.util.io.DefaultResourceFactory42.0126.0
[m] getResource3399
[m] isUrl1133
[c] org.gmetrics.util.io.ResourceN/AN/AN/AN/A
[c] org.gmetrics.util.io.ResourceFactoryN/AN/AN/AN/A
[c] org.gmetrics.util.io.UrlResource21.084.0
[m] getInputStream1144
[m] <init>1144

Metric Descriptions

#Metric NameDescription
1CyclomaticComplexityMeasures the (McCabe) Cyclomatic Complexity of source code. See the Wikipedia entry for Cyclomatic Complexity.
2MethodLineCountCounts the number of lines in each method.

GMetrics 0.5

GMetrics-0.5/docs/images/0000755001501200150120000000000011705670714014616 5ustar miguelmiguelGMetrics-0.5/docs/images/collapsed.gif0000644001501200150120000000006511705042210017234 0ustar miguelmiguelGIF89a€!ù , DŽ`ºçžcŠ5 ;GMetrics-0.5/docs/images/icon_success_sml.gif0000644001501200150120000000173611705042210020627 0ustar miguelmiguelGIF89a÷ÿÿÿ„™º¦¶Î§·Î¼ÈÚÇÑà¿ÈÕc~¢¡±Çßåíw¬™´¦¸Ë—®¿³Ã©½ËSq‚*/‚¡­%(#8='*!37,/(CH'AF&>B/2*,)FI"!Prkœ¼´¢À¸j•†„¬œtœ‹¢Å²FcOƒ­7G;ÅÖÈÈ£¬Ö©·Û´¸ß²2B.²á¥³â¦·ã«¸ä¬¸ä­ºå¯¼å±Â€¶ã©²à¢²à£œÎˆ¬Þ˜«Ü™©Ù—«Û—]•BÎ…¢Ô‹©Û‘Í„­Õ—]”>¡Ô„çñሻf“Çr¿mˆ¶jÐæÂøûöbœ7Jw*U‡0WŠ2•ÑiÔäÈmª;Ag$r³?o¬=ež8fž8b›7ZŽ2YŠ1S‚.Jt)Qy1‰ËW…½Yu¤Qe‹FcˆE—¹{›½{“h­Î×Çîóê„ÊGv·@uµ?k¥:hž7`’3Jr(ÃE^‘3Q|,S~-Dh%}¼DEi&‹ÎQ²Å¢ÖàÍÏ×ÈãëÜIm&Qx+Ot)Mo(êïåLl&Ig%Gc$õ÷òþþþûûû÷÷÷ÿÿÿ!ù‹,» H° A!,X E aCF5pAÆ *01#†"NT0è‡A˜ ¡ =†Y²&€ NR¤I’1ÅÁbà€JðÃ'À:oŒ8bŠ˜3‡ˆ-ÃeË“‹„у™>Ô|‰Â¥ (ØÌq£Å‹•4häÔ±(Ћm®TÉ"Jž;*d(Å"4l¨p ,Pø°( ;GMetrics-0.5/docs/images/logos/0000755001501200150120000000000011705670714015741 5ustar miguelmiguelGMetrics-0.5/docs/images/logos/maven-feather.png0000644001501200150120000000640211705042210021153 0ustar miguelmiguel‰PNG  IHDRZ#ž/ pHYs.#.#x¥?vgAMA±Ž|ûQ“ cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅF xIDATxÚb`H €øÿÿÿ£ FF€blnÚ³gÏ÷ïß!ìß¿?xüä8û÷ïߟ?´¶ €XˆQtãÆ®®.[LL,##CAAMÍû÷ï'Ož\WW7eÊooo g„„„ ²oß¾1cFuu5A»øøøBCCýýý£££&ì=q†ñߟß7¿j›%ôó7£™»¾º€¾§²<· Õƒ €ˆJÏŸ?¿yófZZZJJ ''gpp0¦666mmm cß¾}oÞ¼Ù°aCoo/\öÛ·oÀh'Æ.33³ ­366^½zõ›W¯ž<{sbá‘['>>¿ðú׌}ßÒ'|vJzdt9&çî’Ÿ^=§bp±™E@@ÀÂÂÂÊÊ*;;ûÉ“'@‘Ù³g_¿~ȸzõêÂ… 1y÷î]ˆâ>½´uëÖcÇŽÁMøóçO}}½¯¯ïâÅ‹¥Õ¤I“._¾ ÿüùsUUÕß¿ÉçÖ­[@`Ê&F ™Ë–-›ÒѼ}ãªÝOžïgU:̪¾•Mú›øÍŸ"oo3².?ÚÕþÌ)ôJzÖU ßݽýÿÿ? ƒ €XˆTwçÎÖÖV £8P^^2”••555¡søða`d–••¥xyy½¼¼€Ztuuá&œ>}:77˜¢¢¢ää䘘˜€îééÙµk׳gϘ™™ /Ô²&&&ÁÑ «7lxóàÉž›[ÿ1òK3+J2‰>eggaýÿAýï3ÁŸœ|×~‹Þ9ùgñÑÇš3«©ý7Va××ááã–•eçæáæ$)8ˆØààááQWW:èî9sæ$&&âQ T#** Ì2Àp XXÔ ÊÔÔT`vww¯[·...( ,¸b`¨\¸|åç¿á1Ñúg]¾±ã*ËŸÓ ïþy|÷?';#?ûFAvVN=–Ï\JýýÌzñŸäõK_÷ß`ý¸ö×ï÷r|ÿy9ÿëè y™0É*°rˆ ÉK±rpã÷&@!!!ö‰'Ž= ¯¡á~ÀÁÁa°²²«4)))`šÌ2ööö˜õ¿ž¶–¢œÜ?†ÿ?ï­ÿs;èày>•Íìò/~ýþø÷Å“ßOÖÿ}ÉÈÀ´•]މ_ŒEÒœé;ëqÖ,² _¾~ù÷å:»ÜïZGÜÙpùàY¡GLºÂL"¼R&¬œŒŒX €"68~þüùâÅ X@= ¥¥Œy`VúdóæÍ@ïaÖá?~ü@9wî܃€¡T_\\ ‰ŒŒ,**rtt„„° QUU&+¨ËXX@V%=ú÷yúµgO}þ{ýãï;v¡ïìo¾ÿþ÷öü¿ï/þ¾½ÿëìq†?ŒŒ‚BŒüŒlߘ$¤™lÙYßþ[÷ÞÀéïÃ{ßEïüÐT8÷ºðÒu/NWÍÿ‚*†üÒpGQÁô9°ÀÖŠX•*))S{zzúòåËXÁXŽ nnnSSÓ &ìܹÓÝÝRïkßœœ`1±³³  æ©S§Bl™?~rr2<8à€]>5ó½¯çûƒ[¥Vï×:rùínŽ_ìŸþ³²³ü÷bz΢øŸUæ1Ãÿwÿ¾?ÿÿëÝ`ûäþ­¿ÿÿÿõ‘‘Møÿ¡Íÿ¿=þ%æËðòòC.‘»¿¬Å?2~øûñÍ3Öoûï=ãc°“SòçÚ@µJ%+¤¤À* l71‚²°~ „ ` L˜‰ »uÿþ}ýòñãÝóßoÿ³ü—ãï½ïØt˜þúýå?#+'3Ã'&.&¶L,Ϲÿ1ü8Ä .Êð‘õß÷Ûÿ9˜þ}øÏ$ðë,»fì.qfIvvF†ÿ~þäÒõŠ™t@ X#}÷îÝ………ÀšÅÃÃT½¿ÿüùöéãßï~ðëùß½çî¾öÿÝŽŸ‹ýá~ø‡…õϯŸ9¿ü}ÃÆñô¿€îï·¹9Y¿þüÍÎÅõó÷/A®2Ìì‘L?M¹þ}aüøƒ]XÂÅÒ!DQp Q`ÛÀÖ'<†õ%° ä ó?.½ÿÀ"ÐñÀTóû÷/†ÿÿ|ÿñíÝ›¿?~þ{ûö˯ÿ‡nþåÿ÷—‡ùïN%A†/Œllßò‰sÈÊ1üøóçý‡?ÊÜl¼¼\\<À4t3@AM$¬]»V€M/`› X.BÊ`kXpþúõkÞ¼yÀR– €íË{÷îý:è€"!8€Å¼Ö¶AÐb Ø6sssC+€u3†1ÿþÿüöÿû§ÿ~QâtHüøñ#0‰áW ,à€õAeà bƒh0¶‘ZÀÊ…‹‹ ­r•••6çá"À–„£‹þNôÿS£û§TñO‰üŸr•?]ÎÿÌþÿ÷PöñãÇÀXm»ºº;8pKm6{0X±bDغ ¶ƒ€õ°ÊFLKK °‘&R`T4 Xµ—””ÈËËkC 2`O08ˆØàƼ‰ t1°Å¬#+ }@.0Ò^¾| ¸ Úíþäc¢‡æ"›,M€Íˆ–7BÌv  €"ÀôÀ†2<Ülˆ`›˜O!Í|`á…[ÀîË—/øƒ €ˆ `Kn.ЕÁGÁkY`×¥2üüü`‰ûÇß™1ÿÎù÷ðÂÿ×÷ÿÝ>ò·Ó eC”Û`]§N‚Ä3°‚øØŠ,]ºâUH:tØ*ŠÓ)$¼€KxÛ×Çǧ¡¡ÁÚÚž¢Ý(üÁ@ÄÇĉá«§OŸB‘ûì[¶l[ðö80£æã?ÿ?¿ý÷øò¿«{þÎŽƒÇ–6ˆ$0‘CtmذÈ9s&„ ¬‰A ÌAÀÄŸÀüò A÷jRRDWcc#ÄXHÒKxÿþ=þà bë9`ŒAÀt+&&owÃK `3¾rå ¼ydxÿ”).ï`xó€áïo”GÁ€§ 'Q ì@CülÝÍ?{ö,d˜ÆÂ0Œ€YjðT iø°' ϹÈåV@,D¶>®°ŒŒà…“'OBÀâ Fð€VÀ Ô÷è¿é _ÞƒAVQÎ[èÿÞ) ~10³2Ê@Ô«©©Á[«“&MæD Ø©Ôb± –Öð€ƒ`¹ôêóçÏU;$tàAvæÌÃÒÒ’ Oˆ¨à¦±Û·oÃG«àÍ­óçÏ£ "‡¢¢"$Œþ¯¯…0!xW2¹002ýxþÿ®~"E^Q´ÔôÄ '+**àÖAÀ‚cÙ²eh-1HRº’0õôô€õDöøñãÄ@5Lî ²Ï5ÈÇ ‡ÑϯÿŸ_Gä `·Øâ8µ‚ìFED² t·k×.`3° ¯Îà#IÀÖàÂ… !Þæ©U«V ËàáeøàÜçÀçÒ¥K¶••AŸQ©XtAœœœpg!‡‘¹¹9„LáÀ¤Ž,l ì< _߃æs¥´þ¿ºÃðù-4€”Á!##4Ød‚D5°dõ÷÷‡Ë=ì »ÈÀ¶oBB°ï TüõëW bqqq`:ÂÀòõõë×@°dgF< €ˆJ@C¹Á˜á¥Ñ…  ‚‚‚‚@qˆ 0*€…DF̬L>• lœàNΧÿÏ®3ZÅ3Ë2°°ƒ¢rqt1;Í& Hµ ¯&-±ÔÔTHsÀF0Ûcyyy„póæM ^ àÁÌwÀ" (hkkKL¿ €ˆêÂ}úô 'ÒØÂƒ]I±@GÃ'€:`ŒÁ›=ÿ¼{üÿé`Tprò3|~É, |â H®¶»íKHÐ`|ÀÕ\»v H= ,Võ¤^V+*HA<ÿ € `ôðóóœv ÑY8”à ¦ÑP@4ŠP@€„Z¤':ævrIEND®B`‚GMetrics-0.5/docs/images/logos/build-by-maven-white.png0000644001501200150120000000432411705042210022363 0ustar miguelmiguel‰PNG  IHDRZ#ž/ pHYs.#.#x¥?vtIME×5B­a³sIDATXÃíY}LS[Ÿ{¡_”b¡‹6(_iø¸º _Ú Aõ+ ¸D³+*Æ5âžÙˆpÝ d…¬QyFC$¸üXˆkX\*R>  VD„Oj© ´½÷ìG>»’ø|aÒ?æÎ™3÷ÎïÌ™™sJ!„`&‰^€`Ž/ƒãùóç&)--­»»{¶ŽÑhÌÈÈ€üüüW¯^1 óîÝ;2j0²²²~!pô÷÷wtt>|øÐ¡C"‘h÷îݳuø|~`` |8::ZRR‚•%É–-[ÂÃÃW¬XA,hµÚÀÀÀœœœÜÜÜššš¦‹ŠŠ ªªJ¯×ÛÙÙY­Ö¯^ææ ‡£££R©ô÷÷ß°aÃ¥K—ŒFãg”íìì\]]¥R©D"!ÂÕ«WÇÇÇûùù%&&VWWïÚµëîÝ»¡[·n%$$À±cÇ”Jå×…Ã~Žzr¹<66óuuuµµµ€slll.„B!fx<EQnnnµµµ­­­*•êËØ€€‰DÒÙÙi³Ù***fëS5>>>]ÒÔÔÔÝÝm±X***Ö­[ )))ÑÑÑ)FóöíÛo‰DÂ0L\\\\\ÜÙ³góóó ERRRaaáúõë—.]êééÉãñüýýÀÇÇG,‡„„ÔÔÔTVV’º£V«=„áØ¹sg{{û¾}û°Î•+WH2þj„¾€l6›Ífû±Q–e9Ž›!™˜˜ }}}aaa3t¾.Á×zqUUU``à½{÷Ðω¨/©mcccÃÃÃ|>ßÅÅ…¢(,´Z­ƒ¢(™Lfoÿ£©šã8Žã>£ðsß,¥¥¥A“ÔÖÖ–žžîææ†óÂÞ½{ÇÇÇ-ËåË—hš¦i:44´«« }Sô?À‘œœLªÆì!55uãÆ$F0ÅÆÆÎ2á 3{l–/ùnƒ&“é'S˲ ÃÌ1CÍŽãBCC§7Z …ÂÁÁaFquww—J¥Dâáá1e¡ö{6w‡íO+lô¶ð´¥úÚþº«.@¬ !ôæÍ›èèh•Jc6›ÉKU*•J¥*..ÆB­V»gϹ\.‹%‰R©ÌÌÌ$z||\­V«Tªèè覦¦'Nxzz:99)•ÊŠŠŠyƒÃd2‘3&&w†„ƒR©Ôh4V«upp âëë;U†þ¼ÎvT6ûÇÕN·oooßÝݧ”——cû^^^&“ !tîÜ9‡¡wtt$¸9rOimm¥ihš–ÉdÓWËÅÅeddd~ਫ«#vËË˱°§§ÇÎÎ O:E–çؾ}ûdp³÷qÿ¾Ä½~‚Þ¾â^ü‡ýËz û}2VY¾|9žU__×9(({^RR‚º~ý:v5** CVSS#ÀÁÁãUPP@zß­[·ž>}:22’D´N§›8rss?ôm4Ý×ׇ…ÓÏì·o߯B½^OúñÌÌÌ÷± 1îM+×vŸ-øÝ8nŸÅƒjµÏ*++C]¼x?nÞ¼™ã8³ÙìããƒýÔjµ}“„¡'®8pÏ:sæ 6‹Ïø”`4?ïæ\ë\}}=f¼¼¼/^Lún’5BBB0ÿôéSÒž!{¹šBÔúOêÖúQÆñú fHtôõõ™L&|]$ ÏŸ?OQTcc#îY­Vë”ÙIâñx2™Œã8Ÿñ€¡¡!²s§çµÿÿDzlcc#æW­ZEš…ÇcÆÓÓ“`D€ãóù+W®Ôó„ûûoad( ܃)_ƒØý+l°ãQ+±¾ŸŸfôz}^^^OO¤¤¤à*†ïVÀÝÝGH¡PH¥Òþþþ®®.Œ¬¡¡3áááós¢5/^¼À<©/V«µ¹¹y†p:ÞÞÞ#ôS02”ú;z〢ÑëfTõ7€_yƒÄuFt444`# …"--¼3QQQ7nܘÝ:@ss3Ìàà`±XŒG=z4w8æt„klldYv†çƒƒƒ¯_¿þiŒ&FQÿ³©}AÑ`³ úb@(ï©°÷ññÁqWUUe4)ŠÊÎÎ&åŒÜ$•––a·M&ÓÍ›7###ñõ-¹|#ž›Íæ––ÌGDDÌOthµZ̈D"òYÓ1Z³f fzzzôzýGpØóAà£Fà ÷Snè0†)¦àX¶l™H$b/µZ­Þ±cˆˆØ´iSee¥ÅbÙ¿ÿÁƒE"Ñèè(BhÉ’% …â“pèt:|i “ÉÈfüÒèÐétb±X,“lôäÉ,tvvÆÂ––¡Pˆå0²ãÑ[¿¾`ì=Ò?£"~2w°€½¼C§§C???@ œ³³³qY%e²¸¸8)) ·,ËŽŒŒP%—Ë?Ž¡££C …BGCCŸÏk×®Ñ1’æt„{ÿþ½ÅbÁÙÑÉÉ GFFpÄÒ4íââBu£££¤í™òçÝÔ÷x"Êc%ˆóÞ,à´¦}¥Á`˜˜˜Àиºº~òc C{{»Á`îîî¾¾¾¸®s700€Ëœ\.ÇÎ3 Ã0 ˆÅâE‹Í ;-À±@ÿ§wýí¿ƒIEND®B`‚GMetrics-0.5/docs/images/logos/build-by-maven-black.png0000644001501200150120000000436611705042210022325 0ustar miguelmiguel‰PNG  IHDRZ#ž/ pHYs.#.#x¥?vtIME×úļ•IDATXÃíXiLTY>ï½* ( ±J¶BZ@–€Š›ˆ†%‚‡?hÆ?"jb‚Qd~(„d\ÆA $ &Œ2™¸1 ›€ »‘"R`UJ-¼Zîü8Ìm„žîÎ4É´NêÇ©sÏ}ïÞï~ïœsÀš¬É𬒤¦¦ÖÔÔÔÔÔTWWzxx¬ôQ(‡bY¶¤¤ÄÕÕU&“‰Å⥣¹¹¹ßÄfÙ_ôغu+!¤ªªª¶¶6<<¼¼¼|¥ÏÜÜÜøø8˲™™™NNNçÎKMM¥£~~~1118`rrR©T¶¶¶ÖÔÔ@II‰D"€ôôô¤¤$www???tÞ¶m[JJJ^^µÀúõë¯_¿^__Ÿ””ÄqÜ… eáááÇ …çÏŸ_J¨ß5‰‰‰gÏž---­¨¨(++€ýû÷;;;@TTTxxx@@Àž={Ðùýû÷ÝÝݳ³³K¿¸ºººòòòêêjOOOooï´´4ÈÍÍ%„0 # ¿vhµÚáááööö“'Or÷3Î&“É`0LOOó>þÕ«W‹¥¹¹ùÒ¥K·oߎãöíÛçääô °czz:;;;>>¦¦¦<¸°°PQQQUU¥ÑhZ[[ggg ÃÄÄ!dppÐn·777·µµ€Á`P*•>ôðð¸|ùòÔÔܽ{÷ðáà  :;;—~_ߘ–ý¯äZ9Äqœ@ð#úiii•••ke@~~~___ppðïma̯ôsvvvssC]¯×B‚‚‚<==­Vëàààüü<ùøø2 £R©&''†Y‡Ãáp|«çyæÌÜ€ÕjÝ»wï³gÏìv;!„2<<ìçç'•J¯^½j2™Ðh2™²²²þ°ônllÄ}Z­V£ÑH¾–G-3~;ðue·H¹/A„”“:3Ëø‚‚ù{‘º CíK7lسk×®àààeC,Ë¢?G®®®[¶l‰ˆˆXÍ´%ÆÇÇé>5MSSÓ‡–nÞh4>}ú´»»›ZL&“H$Â'ämsžøóúù<©-_fË—Yóe†¤ÿø^âïÆâz{{µZ­V«MNN¦ï½xñ"ëëë¦ÈÈÈÐó°ÙlCCCééétJQQN¹víÚéÓ§ÕjµÃá°ÛíoÞ¼ùî»ïV???‡Ã+¸qã^.ÂÂÂèÎ{{{7n܈)“ÒD§ÓÑüÒô½X8*CthnnÆYGŽAKPPÐüü~ü6›Íf³¡q``€Ë·ZûÁ~ñ­Ö‰þ¦õ¼¡«z»X¤†x,Öû£££¨ÈårTŠ‹‹÷ÊÊʾ¾¾ºº:±X<33£P(¶o߈e‹H$ÊÎÎÆr122§÷ôô;vìèÑ£´hÆ[…"=..³Ùüöí[Ô#""¨CWW½¹Ò‹,5Àé—&r1»}ƒ@.f‹à¾7Ø…B‘““ƒE`II œ:uÊÝÝjkkœœ°c€F ‘Éd Óéñ0ÒÓÓ322@¥R­2£££z½uÚ „tww£Fó1…Ãß=©pÉ ròwc™¯3{‡Æ¶–eKKK1øÎÍ͉D"Ú@)(((((X¶BäæÎ;‘Å”˜¾¾¾¨tvv® ÃÄÆÆRÒ×PŒT*ÕÌÌÌ2#…#̃{šå.³Ð3ck›²M|¶ĸø¸² üccc‡ƒeY¹\¾{÷n<Ï—/_ÖÕÕ€D"Á]Y,–'OžB–-òñãÇþU*•”­´Ø£Æß$¡¡¡4åååÑ\£R©ÐØÐÐ@oݺ…F­V‹ukŸFÍ¿'‰9`ƒ3cøAŠaUâÄÐuùò…¢V«ÛÚÚ!<ÏÓíyyya™c4×­[·l…Ø+á8n``ßN/– 42 ³ ¡tåcõéïᅩ„ÇEGG£Ž—e Æk‘€½Ÿìv, ‰… ¼ÓÚ¾ð„¶±]äë뛀1‚ž§^¯Ÿ˜˜À:¢²²™Â²lllìµk×JKKÀÓÓsóæÍØCèééÁ‰;vì ÔXɩ߇^¯Y™k(F2™ D„€~aq‰®ÿÚï>œëñ×Ý‹M@ú¥, 0;;[TTDÿò<_VV†ûÉÉÉQ«ÕƒÁb±tuuåååõ÷÷c,Ãp344DåW{{ûêô; Ïó<Ï¿{÷îóçÏhŒŽŽFãüüüëׯi——Îó%9J.F¯p«±r®N3O²v´³x·µ{»@-EL6RO8V08G3O1:bGm3=4>7 C5AgOx?2ME7TmW†|d™}gŽu²š„Á^Vƒøððèààöððýýýûûûúúúôôôÿÿÿ!ù,Ï; H° AJýéÃg’ÁN’Þ´YcŒ—* FrÃM™/]¨HI‚h $5iÎŒ³å “%B€øéTÉ ™0P8ÁÒ$À“2,Êã…‹•,Z(µ¤D‡ŒðL‰¢É¥¨@¡€¢;GŒÉák$<Hd‡ >`ê'‘!\2ƒ†?v°hp‰‡  uÚ@‹ .¨Xñà = q˜0 )f$Tp„"F¼ˆQƒ´ÁGrểCÇÁ€;GMetrics-0.5/docs/images/expanded.gif0000644001501200150120000000006411705042210017055 0ustar miguelmiguelGIF89a€!ù , „j œ´Î;GMetrics-0.5/docs/images/icon_warning_sml.gif0000644001501200150120000000110011705042210020605 0ustar miguelmiguelGIF89aæÿÿÿ¸œ§º¡«b`awr}“ޤ˜ º¡¨¿¬²Æ~ް„’²j| £¯ÇfsŠ„™º§·Î·Ä×ÄÏßËÔ⣴ÌÜãì[M@Kƒ? àk®T£N ”G J$ùwñsïrêpÛi×fÖfÔeÎcÍbÇ_¿[¼Z°T©Q¤OšJ E D E ƒ? i2 çnämÃ]¹X·WµV•H ‰A €= h2 ]-Ëbùzù{ìz&«Z¿i&×iù(Ëj&ùƒ1ùƒ2ú†7Ìm-D2%Ìp4úŠBúŽIØ|DÌu@ú”Yú˜aæ\Ì}R׈[¦v[úmI:2̓`û¡vû¤û§ƒÙ‘s=.()ûª‹+*û­‘ç ….!Ó—<,&é¤5&!:*%²‡y*Švp묜*,-¨‡‚š~zÇŸžÿÿÿ!ùv,€v‚ƒ„…† †…oae‹ƒd][s’v iT ‹u^PW†\Z¥MI…gXU¥GAD„SRQ¥?4ƒVONK¥)#C‚nJHFE0=7'6*v B@%¥+8, l !5"9¥.:/Lt"$&(-3:øc‡ Yìø‚f3càÄ‘#¦ ;;GMetrics-0.5/docs/images/close.gif0000644001501200150120000000042711705042151016401 0ustar miguelmiguelGIF89a¥ÿÿÿðððïïïàààßßßÐÐÐÏÏÏÀÀÀ¿¿¿°°°¯¯¯   ŸŸŸ€€€pppooo```___PPPOOO@@@???000/// ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,<@€pH,Šˆ¤r©„™Ð¤™‰–VéS™EtS¦õ Þb¯Ë𙬮¢¿mr·mšëZdÏï÷Ç€A;GMetrics-0.5/docs/images/icon_info_sml.gif0000644001501200150120000000113611705042210020104 0ustar miguelmiguelGIF89aæÿÿÿýýþùúüøùûÚàërƒžÑÙæÕÜè×ÞéÖÝè 'SG]}]y¢Vp–OgŠLc…J`EYxCWtI^~FZyeªh„¬gƒ«j…­l‡®mˆ¯pаXl‹t²v´dy˜w´|”·~•¸w­€—¹uŠ©nž„š»ƒ™º…›¼zŽ¬ŠŸ¿w‰¤‹ ¿¡À¤Â…—²™¬Ç˜«Æ‚’©’¢º†•«¡²Ë¦¶Î©¹Ð­¼Ò¬»ÑŸ¬À±¿Ô°¾ÓµÂ֏Ũ¼ÈÚÁÌÝÃÎÞÂÍݲ¼ËÉÓâÆÐßËÔâÍÖäÌÕãÓÛçÒÚæÈÏÙéíóãçíõ÷úôöùóõø@TpAUqyŽ«}ަ•©Åž°É§´Å¹ÆØÀÉÕàæîßåíáçïåêñäéððó÷ïòöÝäíÜãìÛâëçìòæëñìðõëïôêîóØßçâèïñô÷öøúûüýúûüþþþÿÿÿ!ùr,»€r‚ƒ„…‚`fg`l\d LGƒ^qqopnQmbj.‡™MObhNg r\oP6 [igŒ%‚d›mE4k_^eL‚ PRah YcHB‚ËjfV ‚FØ`\- 5Z=97‚D`] I' 1ì30‚@KICA@,¨"‹éøcÇ $X ñA‚ ?tàÀrå…Š!8h 2è† @ Pa†b ;GMetrics-0.5/docs/images/newwindow.png0000644001501200150120000000033411705042210017325 0ustar miguelmiguel‰PNG  IHDR Óº&gAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe< PLTEuuu™ÿÿÿÿÿÿ€8ÉÙtRNSÿÿÿ@*©ôFIDATxÚb`fff„f€b±™@€‘ €€Æ „8@!³™ @`6Ô€±L€Ø& ±´Â^IEND®B`‚GMetrics-0.5/docs/license.html0000644001501200150120000004672011705042163015661 0ustar miguelmiguel GMetrics - Project License

Overview

Typically the licenses listed for the project are that of the project itself, and not of dependencies.

Project License

Apache 2

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

GMetrics-0.5/docs/project-info.html0000644001501200150120000002053711705042210016625 0ustar miguelmiguel GMetrics - Project Information

Project Information

This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.

Overview

DocumentDescription
DependenciesThis document lists the project's dependencies and provides information on each dependency.
Project LicenseThis is a link to the definitions of project licenses.

GMetrics-0.5/docs/gmetrics-roadmap.html0000644001501200150120000001725411705041651017476 0ustar miguelmiguel GMetrics - GMetrics Road Map

GMetrics - Road Map

Suggestions or preferences? Create a Feature Request.

On the Horizon

  • More metrics

GMetrics-0.5/docs/dependencies.html0000644001501200150120000005127311705042162016663 0ustar miguelmiguel GMetrics - Project Dependencies

Project Dependencies

compile

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

GroupIdArtifactIdVersionType
log4jlog4j1.2.13jar
org.apache.antant1.7.1jar
org.codehaus.groovygroovy-all1.7.5jar

test

The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:

GroupIdArtifactIdVersionType
junitjunit3.8.2jar
org.codenarcCodeNarc0.16jar
org.gmetricsGMetrics0.4jar

Project Transitive Dependencies

The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.

compile

The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

GroupIdArtifactIdVersionType
org.apache.antant-launcher1.7.1jar

Project Dependency Graph

Dependency Tree

  • org.gmetrics:GMetrics:jar:0.5 Information
    • org.codehaus.groovy:groovy-all:jar:1.7.5 (compile) Information
    • log4j:log4j:jar:1.2.13 (compile) Information
    • org.apache.ant:ant:jar:1.7.1 (compile) Information
      • org.apache.ant:ant-launcher:jar:1.7.1 (compile) Information
    • junit:junit:jar:3.8.2 (test) Information
    • org.codenarc:CodeNarc:jar:0.16 (test) Information

Licenses

Apache 2: CodeNarc, GMetrics

Unknown: Groovy, Log4j, Unnamed - org.apache.ant:ant-launcher:jar:1.7.1, org.apache.tools.ant

Common Public License Version 1.0: JUnit

Dependency File Details

FilenameSizeEntriesClassesPackagesJDK RevDebug
junit-3.8.2.jar117.81 kB12010261.2debug
log4j-1.2.13.jar349.79 kB283253191.1debug
ant-1.7.1.jar1.26 MB818769291.2debug
ant-launcher-1.7.1.jar11.86 kB12511.2debug
groovy-all-1.7.5.jar5.23 MB3,4763,297891.5debug
CodeNarc-0.16.jar3.44 MB998920351.5debug
TotalSizeEntriesClassesPackagesJDK RevDebug
610.40 MB5,7075,3461791.56
compile: 4compile: 6.84 MBcompile: 4,589compile: 4,324compile: 138-compile: 4
test: 2test: 3.56 MBtest: 1,118test: 1,022test: 41-test: 2

Dependency Repository Locations

Repo IDURLReleaseSnapshot
sonatype-nexus-snapshotshttps://oss.sonatype.org/content/repositories/snapshots-Yes
centralhttp://repo1.maven.org/maven2Yes-

Repository locations for each of the Dependencies.

Artifactsonatype-nexus-snapshotscentral
junit:junit:jar:3.8.2-Found at http://repo1.maven.org/maven2
log4j:log4j:jar:1.2.13-Found at http://repo1.maven.org/maven2
org.apache.ant:ant:jar:1.7.1-Found at http://repo1.maven.org/maven2
org.apache.ant:ant-launcher:jar:1.7.1-Found at http://repo1.maven.org/maven2
org.codehaus.groovy:groovy-all:jar:1.7.5-Found at http://repo1.maven.org/maven2
org.codenarc:CodeNarc:jar:0.16-Found at http://repo1.maven.org/maven2
Totalsonatype-nexus-snapshotscentral
6 (compile: 4, test: 2)06

GMetrics-0.5/docs/gmetrics-MethodCountMetric.html0000644001501200150120000002175011705041651021444 0ustar miguelmiguel GMetrics - GMetrics - MethodCount Metric

MethodCount Metric

Metric for counting the number methods and closure fields within each class. Note that this metric counts methods and constructors.

Implemented by the org.gmetrics.metric.methodcount.MethodCountMetric class.

Additional notes

  • If a class field is initialized to a Closure (ClosureExpression), then that Closure is analyzed just like a method.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the method, class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]

GMetrics-0.5/docs/gmetrics-AbcMetric.html0000644001501200150120000003035211705041650017675 0ustar miguelmiguel GMetrics - GMetrics - ABC Metric

ABC Metric

Calculates the ABC Metric for a class or method. ABC is a metric of size/complexity that counts the number of Assignments (A), Branches (B) and Conditions (C) and assigns a single numerical score calculated as:

 |ABC| = sqrt((A*A)+(B*B)+(C*C))

Implemented by the org.gmetrics.metric.abc.AbcMetric class.

The ABC Metric calculation rules for Groovy:

  • Add one to the assignment count for each occurrence of an assignment operator, excluding constant declarations: = *= /= %= += <<= >>= &= |= ^= >>>=
  • Add one to the assignment count for each occurrence of an increment or decrement operator (prefix or postfix): ++ --
  • Add one to the branch count for each function call or class method call.
  • Add one to the branch count for each occurrence of the new operator.
  • Add one to the condition count for each use of a conditional operator: == != <= >= < > <=> =~ ==~
  • Add one to the condition count for each use of the following keywords: else case default try catch ?
  • Add one to the condition count for each unary conditional expression. These are cases where a single variable/field/value is treated as a boolean value. Examples include if (x) and return !ready.

Additional notes

  • A property access is treated like a method call (and thus increments the branch count).
  • If a class field is initialized to a Closure (ClosureExpression), then that Closure is analyzed just like a method.

Guidelines for Interpreting ABC Metric Values

A frequently-referenced blog post by Jake Scruggs ([4]) offers the following guidelines for interpreting an ABC score. Note that these values refer to the score (magnitude) calculated for a single method:

  • 0-10 = Awesome
  • 11-20 = Good enough
  • 21-40 = Might need refactoring
  • 41-60 = Possible to justify
  • 61-100 = Danger
  • 100-200 = Whoop, whoop, whoop
  • 200 + = Someone please think of the children

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the method, class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]
includeClosureFieldsThis boolean property controls whether metric values are calculated for Closure Fields and treated as methods. A Closure Field is a field that is initialized to a Closure Expression, e.g., def myField = { println 12 }.true

References

  • [1] The ABC Metric specification.
  • [2] The The C2 Wiki page for the ABC Metric.
  • [3] Flog is the popular Ruby tool that uses ABC.
  • [4] This blog post describes some guidelines for interpreting the ABC score. The post refers to the Flog tool, but the ABC score is calculated similarly (though adapted somewhat to account for language specifics) and the guidelines should be transferable.

GMetrics-0.5/docs/css/0000755001501200150120000000000011705670714014141 5ustar miguelmiguelGMetrics-0.5/docs/css/maven-base.css0000644001501200150120000000463611705042210016662 0ustar miguelmiguelbody { margin: 0px; padding: 0px; } img { border:none; } table { padding:0px; width: 100%; margin-left: -2px; margin-right: -2px; } acronym { cursor: help; border-bottom: 1px dotted #feb; } table.bodyTable th, table.bodyTable td { padding: 2px 4px 2px 4px; vertical-align: top; } div.clear{ clear:both; visibility: hidden; } div.clear hr{ display: none; } #bannerLeft, #bannerRight { font-size: xx-large; font-weight: bold; } #bannerLeft img, #bannerRight img { margin: 0px; } .xleft, #bannerLeft img { float:left; } .xright, #bannerRight { float:right; } #banner { padding: 0px; } #banner img { border: none; } #breadcrumbs { padding: 3px 10px 3px 10px; } #leftColumn { width: 170px; float:left; overflow: auto; } #bodyColumn { margin-right: 1.5em; margin-left: 197px; } #legend { padding: 8px 0 8px 0; } #navcolumn { padding: 8px 4px 0 8px; } #navcolumn h5 { margin: 0; padding: 0; font-size: small; } #navcolumn ul { margin: 0; padding: 0; font-size: small; } #navcolumn li { list-style-type: none; background-image: none; background-repeat: no-repeat; background-position: 0 0.4em; padding-left: 16px; list-style-position: outside; line-height: 1.2em; font-size: smaller; } #navcolumn li.expanded { background-image: url(../images/expanded.gif); } #navcolumn li.collapsed { background-image: url(../images/collapsed.gif); } #poweredBy { text-align: center; } #navcolumn img { margin-top: 10px; margin-bottom: 3px; } #poweredBy img { display:block; margin: 20px 0 20px 17px; } #search img { margin: 0px; display: block; } #search #q, #search #btnG { border: 1px solid #999; margin-bottom:10px; } #search form { margin: 0px; } #lastPublished { font-size: x-small; } .navSection { margin-bottom: 2px; padding: 8px; } .navSectionHead { font-weight: bold; font-size: x-small; } .section { padding: 4px; } #footer { padding: 3px 10px 3px 10px; font-size: x-small; } #breadcrumbs { font-size: x-small; margin: 0pt; } .source { padding: 12px; margin: 1em 7px 1em 7px; } .source pre { margin: 0px; padding: 0px; } #navcolumn img.imageLink, .imageLink { padding-left: 0px; padding-bottom: 0px; padding-top: 0px; padding-right: 2px; border: 0px; margin: 0px; } GMetrics-0.5/docs/css/maven-theme.css0000644001501200150120000000536111705042210017046 0ustar miguelmiguelbody { padding: 0px 0px 10px 0px; } body, td, select, input, li{ font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; } code{ font-family: Courier, monospace; font-size: 13px; } a { text-decoration: none; } a:link { color:#36a; } a:visited { color:#47a; } a:active, a:hover { color:#69c; } #legend li.externalLink { background: url(../images/external.png) left top no-repeat; padding-left: 18px; } a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover { background: url(../images/external.png) right center no-repeat; padding-right: 18px; } #legend li.newWindow { background: url(../images/newwindow.png) left top no-repeat; padding-left: 18px; } a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover { background: url(../images/newwindow.png) right center no-repeat; padding-right: 18px; } h2 { padding: 4px 4px 4px 6px; border: 1px solid #999; color: #900; background-color: #ddd; font-weight:900; font-size: x-large; } h3 { padding: 4px 4px 4px 6px; border: 1px solid #aaa; color: #900; background-color: #eee; font-weight: normal; font-size: large; } h4 { padding: 4px 4px 4px 6px; border: 1px solid #bbb; color: #900; background-color: #fff; font-weight: normal; font-size: large; } h5 { padding: 4px 4px 4px 6px; color: #900; font-size: normal; } p { line-height: 1.3em; font-size: small; } #breadcrumbs { border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background-color: #ccc; } #leftColumn { margin: 10px 0 0 5px; border: 1px solid #999; background-color: #eee; } #navcolumn h5 { font-size: smaller; border-bottom: 1px solid #aaaaaa; padding-top: 2px; color: #000; } table.bodyTable th { color: white; background-color: #bbb; text-align: left; font-weight: bold; } table.bodyTable th, table.bodyTable td { font-size: 1em; } table.bodyTable tr.a { background-color: #ddd; } table.bodyTable tr.b { background-color: #eee; } .source { border: 1px solid #999; } dl { padding: 4px 4px 4px 6px; border: 1px solid #aaa; background-color: #ffc; } dt { color: #900; } #organizationLogo img, #projectLogo img, #projectLogo span{ margin: 8px; } #banner { border-bottom: 1px solid #fff; } .errormark, .warningmark, .donemark, .infomark { background: url(../images/icon_error_sml.gif) no-repeat; } .warningmark { background-image: url(../images/icon_warning_sml.gif); } .donemark { background-image: url(../images/icon_success_sml.gif); } .infomark { background-image: url(../images/icon_info_sml.gif); } GMetrics-0.5/docs/css/site.css0000644001501200150120000000006711705042210015602 0ustar miguelmigueltt { font-size: 110%; font-weight: bolder; }GMetrics-0.5/docs/css/print.css0000644001501200150120000000033611705042210015771 0ustar miguelmiguel#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { display: none !important; } #bodyColumn, body.docs div.docs { margin: 0 !important; border: none !important } GMetrics-0.5/docs/gmetrics-sampleReports.html0000644001501200150120000002165511705041651020713 0ustar miguelmiguel GMetrics - GMetrics Sample Reports

Sample Reports

Sample HTML Report (BasicHtmlReportWriter)

See a Sample Report from the org.gmetrics.report.BasicHtmlReportWriter ReportWriter.

Sample Single-Series HTML Report (SingleSeriesHtmlReportWriter)

See a Sample Report from the org.gmetrics.report.SingleSeriesHtmlReportWriter ReportWriter.

Sample XML Report (SingleSeriesHtmlReportWriter)

See a See a Sample Report from the org.gmetrics.report.XmlReportWriter ReportWriter.

Use XSLT to Generate a Custom HTML Report

MrHaki has written a detailed blog post describing How to Create a GMetrics Report with XSLT


GMetrics-0.5/docs/gmetrics-DefaultMetricSet.html0000644001501200150120000002002411705041650021243 0ustar miguelmiguel GMetrics - GMetrics - DefaultMetricSet

The Default MetricSet

If no MetricSet is configured for the GMetrics Ant Task then it uses the set of Metrics defined by the org.gmetrics.metricset.DefaultMetricSet class. That includes the following Metrics:


GMetrics-0.5/docs/gmetrics-SingleSeriesHtmlReportWriter.html0000644001501200150120000002775011705041651023667 0ustar miguelmiguel GMetrics - GMetrics SingleSeriesHtmlReportWriter

SingleSeriesHtmlReportWriter

Description

The org.gmetrics.report.SingleSeriesHtmlReportWriter class produces an HTML report of metric results based on a single metric, single level and single function to provide a single series of data.

The metric, level and function properties are required (must be non-null and non-empty). These three properties uniquely identify a single series of metric values.

See a Sample Report.

Option Nested Elements

The option element is a child of the report element and defines a report-specific option for a report.

org.gmetrics.report.SingleSeriesHtmlReportWriter supports the following options:

AttributeDescriptionRequired
metricThe name (case-sensitive) of a single Metric included in the analysis results (e.g. "CyclomaticComplexity").Yes
levelThe single level at which results are included in the report. Valid level values are "package", "class" and "method".Yes
functionThe function for which results are included in the report. Valid function values are metric-specific, but are typically "total", "average", "minimum" or "maximum".Yes
outputFileThe path and filename for the output report file.No
titleThe title for the output report.No
writeToStandardOutSet to "true" or true to write out the report to stdout (System.out) instead of writing to a file.No
sortControls whether the report results are sorted numerically. A value of null or empty means no sorting is performed; otherwise, the value must be either "ascending" or "descending".No
maxResultsSpecifies the limit on the number of results included in the report. A value of null, zero or empty means no limit is applied; otherwise the value must be a positive integer.No
greaterThanSpecifies a lower-bound threshold -- only results with a larger value are included within the report. A value of null or empty means no lower-bound threshold is applied.No
lessThanSpecifies an upper-bound threshold -- only results with a smaller value are included within the report. A value of null or empty means no upper-bound threshold is applied.No

Example

Here is an example Ant XML build file illustrating configuration of org.gmetrics.report.SingleSeriesHtmlReportWriter.

<taskdef name="gmetrics" classname="org.gmetrics.ant.GMetricsTask">
<target name="runGMetrics">

    <gmetrics>
        <report type="org.gmetrics.report.SingleSeriesHtmlReportWriter">
            <option name="outputFile" value="SampleGMetricsReport.html" />
            <option name="title" value="Sample" />
            <option name="metric" value="CyclomaticComplexity" />
            <option name="level" value="class" />
            <option name="function" value="average" />
            <option name="maxResults" value="50" />
            <option name="greaterThan" value="100.0" />
        </report>
        <fileset dir="src">
            <include name="**/*.groovy"/>
        </fileset>
    </gmetrics>

</target>

GMetrics-0.5/docs/gmetrics-CoberturaLineCoverageMetric.html0000644001501200150120000002432411705041650023424 0ustar miguelmiguel GMetrics - GMetrics - CoberturaLineCoverage Metric

CoberturaLineCoverage Metric

Metric that measures the code coverage of source lines based on a Cobertura coverage XML file.

Implemented by the org.gmetrics.metric.coverage.CoberturaLineCoverageMetric class.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]
coberturaFileThe path to the Cobertura XML file. By default, the path is relative to the classpath. But the path may be optionally prefixed by any of the valid java.net.URL prefixes, such as "file:" (to load from a relative or absolute path on the filesystem), or "http:". This property is REQUIRED.N/A
packageNamePrefixesOptional, comma-separated list of prefixes that should be stripped from full path names before checking the Cobertura XML file for matching coverage information. For instance, if the GMetrics Ant task is configured to pull in all *.groovy files from "src/main/groovy/**", then all of the package paths will be prefixed with "src/main/groovy", which is not part of the actual package name recorded in the Cobertura XML file. In that case, set the packageNamePrefixes property to "src/main/groovy".null

References

  • Cobertura -- Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage.

GMetrics-0.5/docs/gmetrics-CrapMetric.html0000644001501200150120000003125011705041650020073 0ustar miguelmiguel GMetrics - GMetrics - CRAP Metric

CRAP Metric

Measures the C.R.A.P. (Change Risk Anti-Patterns) score. It is designed to analyze and predict the amount of effort, pain, and time required to maintain an existing body of code.

A method with a CRAP score over 30 is considered CRAPpy (i.e., unacceptable, offensive, etc.). [2]

Implemented by the org.gmetrics.metric.crap.CrapMetric class.

CRAP Formula

Given a Groovy method m, C.R.A.P. for m is calculated as follows:

  C.R.A.P.(m) = comp(m)^2 * (1 – cov(m)/100)^3 + comp(m)

Where comp(m) is the cyclomatic complexity of method m, and cov(m) is the test code coverage provided by automated tests.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]
coverageMetricThe GMetrics Metric instance to provide code coverage data. GMetrics includes a Cobertura-based coverage metric. See CoberturaLineCoverageMetric This property is REQUIRED.N/A
complexityMetricThe GMetrics Metric instance to provide cyclomatic complexity data. GMetrics includes a CyclomaticComplexityMetric, which is used as the default provider.An instance of CyclomaticComplexityMetric

Sample MetricSet Definition

Here is a sample MetricSet definition that includes a CrapMetric.

  final COBERTURA_FILE = 'coverage/GMetrics/coverage.xml'

  metricset {

      def coberturaMetric = CoberturaLineCoverage {
          coberturaFile = COBERTURA_FILE
          functions = ['total']
      }

      CRAP {
          functions = ['total']
          coverageMetric = coberturaMetric
    }
  }

Note setting the coverageMetric field is required.

The CRAP metric is a special composite metric -- it uses other metrics to calculate complexity and code coverage. In the example above, the CoberturaLineCoverage metric is also included within the MetricSet being defined. Alternatively, if you define the CoberturaLineCoverage metric within the CRAP metric definition, then the CoberturaLineCoverage metric is not included within the MetricSet, as in the example below.

  final COBERTURA_FILE = 'coverage/GMetrics/coverage.xml'

  metricset {

      CRAP {
          // CoberturaLineCoverage is not included in the MetricSet
          coverageMetric = CoberturaLineCoverage {
              coberturaFile = COBERTURA_FILE
          }
    }
  }

There is one annoying known limitation with that behavior. If you use the Map syntax, rather than the Closure syntax, to define the outer metric, then inner metric is also included within the MetricSet, as in the example below.

  metricset {
      // Both CRAP and CoberturaLineCoverage metrics are included in the MetricSet
      CRAP(coverageMetric:CoberturaLineCoverage(coberturaFile:'coverage/GMetrics/coverage.xml'))
  }

References

  • [1] The original 2007 blog post that defined the CRAP metric.
  • [2] A 2011 blog post from Alberto Savoia (the co-creator of the CRAP metric with Bob Evans), describing the formula, the motivation, and the CRAP4J tool for calculating CRAP score for Java code.

GMetrics-0.5/docs/gmetrics-ant-task.html0000644001501200150120000002567711705041650017604 0ustar miguelmiguel GMetrics - GMetrics Ant Task

GMetrics - Ant Task

Description

The GMetrics Ant Task is implemented by the org.gmetrics.ant.GMetricsTask class.

Attributes

AttributeDescriptionRequired
metricSetFileThe paths to a Groovy MetricSet DSL file. By default, the path specified is relative to the classpath, but it may be optionally prefixed by any of the valid java.net.URL prefixes, such as "file:" (to load from a relative or absolute filesystem path), or "http:". If not specified, it uses the set of Metrics defined by the Default MetricSet.NO

Report Nested Element

The <report> nested element defines the type and options for a report. It includes a type attribute and contains optional nested <option> elements.

NOTE: Currently, org.gmetrics.report.BasicHtmlReportWriter is the only report provided with GMetrics.

AttributeDescriptionRequired
typeThe fully-qualified class name for the report class. This class must implement the org.gmetrics.report.ReportWriter interface.Yes

Option Nested Element

The <option> element is a child of the <report> element and defines a report-specific option for a report. See the Example below.

Fileset Nested Element

At least one fileset nested element is required, and is used to specify the source files that GMetrics should analyze. This is the standard Ant FileSet, and is quite powerful and flexible. See the Apache Ant Manual for more information on FileSets.

Example

Here is an example Ant XML build file.

<taskdef name="gmetrics" classname="org.gmetrics.ant.GMetricsTask">
<target name="runGMetrics">

    <gmetrics metricSetFile="config/metricset.groovy">
        <report type="org.gmetrics.report.BasicHtmlReportWriter">
            <option name="outputFile" value="SampleGMetricsReport.html" />
            <option name="title" value="Sample" />
        </report>
        <fileset dir="src">
            <include name="**/*.groovy"/>
        </fileset>
    </gmetrics>

</target>

Things to note:

  • The fileset specifies that all ".groovy" files are analyzed.
  • Remember that you need the log4j jar (and possibly a "log4j.properties" file) on the classpath.

GMetrics-0.5/docs/gmetrics-creating-metricset.html0000644001501200150120000003174511705041650021644 0ustar miguelmiguel GMetrics - GMetrics - Creating a MetricSet

GMetrics - Creating a MetricSet

Creating a Groovy MetricSet File

GMetrics provides a Groovy DSL (domain-specific language) for defining MetricSets.

A Sample Groovy MetricSet

The preferred syntax for defining a MetricSet is to specify the list of Metrics using the Metric names. Here is simple example:

metricset {

    description 'A simple MetricSet'

    ClassCount          // specify metric name only (note no "Metric" suffix on metric name)

    FieldCount {        // configure the Metric using a Closure
        functions = ['total']
    }

    MethodCount([functions:['total'])    // configure the Metric using a Map of properties
}

Things to note:

  • The Groovy MetricSet file itself must be accessible on the classpath.
  • This MetricSet includes the ClassCount, FieldCount and MethodCount Metrics.
  • Note that the Metric names do not include the "Metric" suffix (of the Metric implementation class name).
  • Metric properties can be configured either within a Closure (as assignments) or through a Map passed in within the parentheses (after the Metric name).
  • You can specify the Metric names for all Metrics provided with GMetrics. If you provide your own custom Metrics, then you must use the metric(Class) syntax instead -- see below.

A More Comprehensive Groovy MetricSet

Here is an example of a more comprehensive Groovy MetricSet file, illustrating specifying Metrics by Metric class or Metric name, and also nested MetricSet files:

import org.gmetrics.metric.cyclomatic.CyclomaticComplexityMetric

metricset {

    description 'An example MetricSet'

    metricset("MyMetricSet.groovy")

    metric(org.gmetrics.metric.abc.AbcMetric) {
        functions = ['average', 'maximum']
    }

    metric(CyclomaticComplexityMetric)      // specify metric class (see import)

    ClassCount          // specify metric name only (note no "Metric" suffix on metric name)

    FieldCount {          // specify metric name only
        functions = ['total']
    }

    metricset("somepath/MyOtherMetricSet.groovy") {
        ClassLineCount {
            enabled = false
        }

        MethodLineCount name:'CustomMethodLineCount'
    }
}

Things to note:

  • The Groovy MetricSet file itself must be accessible on the classpath.
  • The "outer" metricset defines the contents of the MetricSet (within a closure). It can include an optional description and any combination of metricset (other MetricSets) and metric statements (individual Metrics).

About the "inner" metricset statements:

  • Each metricset statement loads a MetricSet file. The path specifies a Groovy file. By default, the paths specified are relative to the classpath. But these paths may be optionally prefixed by any of the valid java.net.URL prefixes, such as "file:" (to load from a relative or absolute path on the filesystem), or "http:".
  • The MetricSet can be customized by following the MetricSet path with an (optional) closure, containing configuration of the properties for individual metrics within the MetricSet. Specify the name of the metric (as a String), followed by its configuration. (Remember to specify the metric name, not the class name. In most cases, the metric name is the class name without the "Metric" suffix). The name of the Metric is followed by:
    1. A Map of property names and values. See 'MethodLineCount' within the example.
    2. A closure containing property assignments statements. See 'ClassLineCount' within the example.

About the metric statements:

  • Each metric statements loads a single Metric.
  • The metric statement must specify the class name for a Metric. The Metric class must be available on the classpath.
  • A metric can optionally provide configuration of the Metric properties by specifying a closure containing property assignment statements. See AbcMetric within the example. As within MetricSet statements, properties set this way can be of type String, int, long or boolean.
  • The ClassCount and FieldCount Metrics are included by specifying only the Metric name (not the class)
  • Setting the enabled property of a Metric turns it off so that it will not show up in the output report(s).

Turning off a Metric

You can turn off a Metric by setting its enabled boolean property to false. It defaults to true. This applies to all descendants of org.gmetrics.metric.AbstractMetric (i.e., all Metrics supplied with GMetrics).


GMetrics-0.5/docs/gmetrics-ClassCountMetric.html0000644001501200150120000002135411705041650021270 0ustar miguelmiguel GMetrics - GMetrics - ClassCount Metric

ClassCount Metric

Metric for counting the number of classes in each package. This metric counts the number of classes, interfaces and enums within a package.

Implemented by the org.gmetrics.metric.classcount.ClassCountMetric class.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]

GMetrics-0.5/docs/gmetrics-CyclomaticComplexityMetric.html0000644001501200150120000003107411705041650023357 0ustar miguelmiguel GMetrics - GMetrics - Cyclomatic Complexity Metric

Cyclomatic Complexity (McCabe) Metric

Calculates the Cyclomatic Complexity Metric for a class or method. Cyclomatic Complexity is a metric of complexity that counts the number of independent paths through the source code, and assigns a single numerical score for each method. The Cyclomatic Complexity score can also serve as an upper bound for the number of test cases that are necessary to achieve a complete branch coverage for a particular method ([1]).

Implemented by the org.gmetrics.metric.cyclomatic.CyclomaticComplexityMetric class.

Metric Calculation Rules

The Cyclomatic Complexity Metric calculates a value for each method. Furthermore, if a class field is initialized to a Closure (ClosureExpression), then that Closure is analyzed just like a method.

  • Start with a initial (default) value of one (1). Add one (1) for each occurrence of each of the following:
    • if statement
    • while statement
    • for statement
    • case statement
    • catch statement
    • && and || boolean operations
    • ?: ternary operator and ?: Elvis operator.
    • ?. null-check operator

Guidelines for Interpreting Cyclomatic Complexity Values

The value of 10 is often considered as the threshold between acceptable (low risk) code and too complex (higher risk). See [1] and [2], for instance. As McCabe ([1]) says, "The particular upper bound that has been used for cyclomatic complexity is 10 which seems like a reasonable, but not magical, upper limit."

Other sources cite 15 as a useful threshold, and/or draw further delineations between low/medium/high/unacceptable complexity values. NDepend ([4]), for instance, recommends that methods with a score of "15 are hard to understand and maintain. Methods where CC is higher than 30 are extremely complex and should be split." On the other hand, [5] categorizes cyclomatic complexity scores into the following levels:

  • 1-10 = Low risk program
  • 11-20 = Moderate risk
  • 21-50 = High risk
  • >50 = Most complex and highly unstable method

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the method, class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]
includeClosureFieldsThis boolean property controls whether metric values are calculated for Closure Fields and treated as methods. A Closure Field is a field that is initialized to a Closure Expression, e.g., def myField = { println 12 }.true

References


GMetrics-0.5/docs/SampleGMetricsSingleSeriesReport.html0000644001501200150120000001000511705042210022603 0ustar miguelmiguelMethods With Highest Line Count

Methods With Highest Line Count

Report timestamp: Jan 16, 2012 9:58:24 AM

MethodMethod Lines (total)
org.gmetrics.report.BasicHtmlReportWriter#buildResultsTableRowRecursively30
org.gmetrics.metric.crap.CrapMetric#calculate24
org.gmetrics.report.BasicHtmlReportWriter#buildMetricDescriptions24
org.gmetrics.util.WildcardPattern#convertStringWithWildcardsToRegex24
org.gmetrics.util.PropertyUtil#setPropertyFromString22
org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric#calculateForClass21
org.gmetrics.report.SingleSeriesCriteriaFilter#buildSeriesData20
org.gmetrics.report.XmlReportWriter#buildPackageElement20
org.gmetrics.GMetricsRunner#execute19
org.gmetrics.analyzer.FilesystemSourceAnalyzer#processDirectory19
org.gmetrics.metricset.GroovyDslMetricSet#<init>18
org.gmetrics.report.SingleSeriesHtmlReportWriter#writeReport18
org.gmetrics.metric.abc.result.AggregateAbcMetricResult#calculateFunctions17
org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric#calculateForPackage17
org.gmetrics.report.BasicHtmlReportWriter#writeReport17
org.gmetrics.report.BasicHtmlReportWriter#buildResultsTable17
org.gmetrics.report.XmlReportWriter#writeReport17
org.gmetrics.source.SourceCodeCriteria#matches17
org.gmetrics.ant.AntFileSetSourceAnalyzer#processFile16
org.gmetrics.metric.AbstractMethodMetric#calculateForClass16

GMetrics 0.5

GMetrics-0.5/docs/project-reports.html0000644001501200150120000002076711705042210017375 0ustar miguelmiguel GMetrics - Generated Reports

Generated Reports

This document provides an overview of the various reports that are automatically generated by Maven . Each report is briefly described below.

Overview

DocumentDescription
Cobertura Test CoverageCobertura Test Coverage Report.
JavaDocsJavaDoc API documentation.
Test JavaDocsTest JavaDoc API documentation.

GMetrics-0.5/docs/gmetrics-MethodLineCountMetric.html0000644001501200150120000002372111705041651022254 0ustar miguelmiguel GMetrics - GMetrics - MethodLineCount Metric

MethodLineCount Metric

Metric for counting the number of lines for methods and closure fields. Note that this metric measures the number of lines from the first line of the method to the last line of the metric. The count includes all program statements, comment lines and whitespace.

Implemented by the org.gmetrics.metric.linecount.MethodLineCountMetric class.

Additional notes

  • If a class field is initialized to a Closure (ClosureExpression), then that Closure is analyzed just like a method.

Metric Properties

The following properties can be configured for this metric within a MetricSet. See Creating a MetricSet for information on the syntax of setting a metric property.

PropertyDescriptionDefault Value
enabledThis boolean property controls whether the metric is enabled. If set to false, then the metric is not included as part of the results or the output reports.true
functionsThis List<String> property contains the names of the functions to be calculated at the method, class and package levels and (potentially) included within the report(s). Valid values are: - "total" - "average" - "minimum" - "maximum"["total","average"]
includeClosureFieldsThis boolean property controls whether metric values are calculated for Closure Fields and treated as methods. A Closure Field is a field that is initialized to a Closure Expression, e.g., def myField = { println 12 }.true

References

  • The The C2 Wiki page for Lines of Code has a good discussion of the perils of using (abusing) lines of code as a measure of just about anything. Note: That page specifically refers to measuring non-comment lines. This metric only measures total lines, including statements, comments and whitespace.

GMetrics-0.5/CHANGELOG.txt0000644001501200150120000002110611705040616014441 0ustar miguelmiguelGMetrics Change Log ------------------------------------------------------------------------------- http://www.gmetrics.org Changes in version 0.5 (Jan 2012) -------------------------------------- NEW METRICS - New CoberturaBranchCoverageMetric. Branch coverage at method/class/package level. Requires a Cobertura "coverage.xml" file. (#3474462) - New CoberturaLineCoverageMetric. Line coverage at method/class/package level. Requires a Cobertura "coverage.xml" file. (#3474462) - New CrapMetric. Calculated the CRAP score for a method, based on its complexity and code coverage. Requires a Cobertura "coverage.xml" file. (#3192158.) NEW FEATURES - MetricSet DSL: Return value from each metric in the metric set; Allow storing metric in variable. #3465486. This is useful for composite Metrics that require other metric values to calculate results (e.g. CrapMetric). If a metric is defined within another metric definition (assigned to a field), do not include as a standalone metric in the metric set. INTEGRATION WITH OTHER TOOLS - If you use GMetric with CodeNarc, this release requires CodeNarc 0.16. FIXES AND ENHANCEMENTS - Method-level Metrics: Handle multiple overloaded methods. (#3439103). Use MethodKey class. - Fix: For SingleSeries package-level reports, show the full package name, not just the rightmost part of the package name. (#3439104). - Add includeClosureFields property to AbstractMethodMetric. Defaults to true. - Add String getSignature() method to MethodResultsNode and MethodKey. Add signature attribute to Method elements in XmlReportWriter. #3444707. FRAMEWORK/API CHANGES (Potential breaking changes if you have implemented your own Metrics) - Change Metric and AbstractMetric to add packageName to applyToPackage(): applyToPackage(String packageName, Collection childMetricResults). (Breaking Change). (#3465484) - Introduce new MethodMetric (extends Metric) interface: applyToMethod() and applyToClosure(). - Create MethodKey class, with MethodKey(MethodNode) and MethodKey(String) constructors and String getMethodName() method, along with equals() and hashCode(). - Introduce Formatter framework. Enable configuring Formatter for Metric within "gmetrics-base-messages.properties". - Reorganize MetricResult implementation classes; rename NumberMetricResult to SingleNumberMetricResult; Create new NumberMetricResult: allows setting values for total, average, min, max. - AggregateNumberMetricResult: Add support for predefinedValues. - Change writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext) to protected Changes in version 0.4 (Oct 2011) -------------------------------------- NEW FEATURES - Upgrade to Groovy 1.7. NOTE: GMetrics now requires Groovy 1.7. (#3421010) - Support specifying metrics within the MetricSet by specifying the metric name, with optional properties Map or optional closure. (#3421008) NEW METRICS - New FieldCountMetric. Counts the number of fields within each class. (#3341811) - New MethodCountMetric. Counts the number of methods (and closure fields) within each class. (#3341804) - New ClassCountMetric. Counts the number of classes within each package. (#3341812) FIXES AND ENHANCEMENTS - Fix #3305753: Make GMetrics runnable (compatible) with Groovy 1.8. - Fix #3413604: Reimplement ASTUtil.getVariableExpressions() to optimize performance. Thanks to Hamlet D’Arcy. - Fix #3186167: GMetrics can't be built with Groovy >= 1.7.7. Fix illegal writes to final properties. - Fix #3418843: Reports: Exclude results for level "less" than metric base level - ReportWriters: Include output file name in “Report created†message FRAMEWORK/API CHANGES (Potential breaking changes if you have implemented your own Metrics) - #3418135: Add MetricLevel getMetricLevel() to MetricResult interface and impl classes. Also AbstractMetric: Change protected createAggregateMetricResult() to add MetricLevel parameter. - Specify collection types (generics) for method signatures within Metric, MetricResult , ResultsNode and ClassMetricResult classes. - Add isValid() method to the SourceCode interface and implementations. INFRASTRUCTURE AND TESTS - Create GMetricsVersion class with String getVersion(). Remove "GMetrics" from version file. - Upgrade to use CodeNarc 0.15 for tests/analysis. Changes in version 0.3 (23 Jul 2010) -------------------------------------- NEW FEATURES - NEW: SingleSeriesHtmlReportWriter. Creates HTML report for single series (univariate) of metric values. This single series is specified by a single Metric, a level (package, class or method) and a single function (total, average, minimum, maximum). e.g., metric:"ABC", function:"average", level:"method". Also supports optional: greaterThan:"50", lessThan:"100", sort:"descending", maxResults:"20" - For 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., metrics="CyclomaticComplexity, ABC" levels="CyclomaticComplexity=class,method; ABC=method" functions="ABC=average; CyclomaticComplexity=total,maximum" - Add support for "maximum" and "minimum" function for metrics. FIXES AND ENHANCEMENTS - Fix: All method-level Metrics (e.g. MethodLineCountMetric): Apply to constructors as well as regular methods. FRAMEWORK/API CHANGES - MetricResult: Replace hard-coded getTotal() and getAverage() methods with getAt(String) to support the metricResult['total'] syntax. - MetricResult. Add getLineNumber() method to interface. Change AbstractMetric and subclasses to populate the results accordingly. - AbstractMetric: Change calculateForClass() to be protected. AbstractMethodMetric: Specify MetricResult return type for calculate() methods. - MetricLevel: Change to be an enum. - GroovyDslMetricSet: Throw MissingPropertyException if a non-existent property is set within a Groovy MetricSet DSL. Set ruleset Closure resolveStrategy to DELEGATE_ONLY. (See CodeNarc GroovyDslRuleSet). - Upgrade to GMaven 1.2. Changes in version 0.2 (10 Mar 2010) -------------------------------------- NEW FEATURES - NEW: CyclomaticComplexityMetric - NEW: MetricSet DSL: Implement GroovyDslMetricSet and MetricSetBuilder. - NEW: XmlReportWriter BREAKING CHANGES - Modify ReportWriter interface (and implementations) to pass AnalysisContext: void writeReport(ResultsNode resultsNode, AnalysisContext analysisContext). - Change DefaultMetricSet to include CyclomaticComplexityMetric instead of AbcMetric. FIXES AND ENHANCEMENTS - Add metricSetFile property to GMetricsTask Ant Task. - AbcMetric (AbcVector): Fix "NumberFormatException: Infinite or NaN" error with large numbers. - AbcMetric: Calculate metric for run() synthetic method (special case). - GMetricsTask: Fix: Replace call to Class.forName() with getClass().classLoader.loadClass(). - WildcardPattern: Escape plus sign ('+') within patterns. Add plus sign ('+') to convertStringWithWildcardsToRegex(). REPORTS - BasicHtmlReportWriter: Don�t nest packages? Put all packages at the same level (no indent). - BasicHtmlReportWriter: Display full (relative) package names � e.g., �org/gmetrics/source�. - Enable configuring all reports (AbstractReportWriter) to write to the stdout (console). - Add support for 'enabled' property to BasicHtmlReportWriter. METRICS - New CyclomaticComplexity metric - Introduce AbstractMetric. - Added boolean isEnabled() to the Metric interface and enabled property to AbstractMetric. - Add Guidelines for Interpreting for ABC Metric Values to web site. - Add web site page for the DefaultMetricSet. INFRASTRUCTURE AND TESTS - Introduce CompositeMetricSet. - Introduce AnalysisContext class with sourceDirectories and metricSet. - Add List getSourceDirectories() to SourceAnalyzer interface and implementation classes. For AntFileSetSourceAnalyzer: Calculate sourceDirectories relative to project base directory. - Rename AbstractMetricTest to AbstractMetricTestCase. - Add AbstractCommonMetricTestCase. Common tests: enabled returns null for package,class; metric implements Metric. Changes in version 0.1.1 (7 Feb 2010) -------------------------------------- - Fix Bug #2919722: "Method metrics only process first closure field". https://sourceforge.net/tracker/?func=detail&aid=2919722&group_id=288180&atid=1220655. - Enable syncing with Maven Central Repository. Changes in version 0.1 (16 Dec 2009) ------------------------------------ Initial release. Includes AbcMetric, ClassLineCountMetric, MethodLineCountMetric. GMetrics-0.5/README.txt0000755001501200150120000000107511705042360014113 0ustar miguelmiguelGMetrics version 0.5 ------------------------------------------------------------------------------- http://gmetrics.sourceforge.net/ The GMetrics project provides calculation and reporting of size and complexity metrics for Groovy source code. GMetrics scans Groovy source code, applying a set of metrics, and generates an HTML report of the results. DEPENDENCIES CodeNarc requires - Groovy version 1.6 or later - Java 1.5 or later - The Log4J jar, version 1.2.13 or later, accessible on the CLASSPATH (http://logging.apache.org/log4j/index.html). GMetrics-0.5/pom.xml0000644001501200150120000002106011705042256013727 0ustar miguelmiguel 4.0.0 org.gmetrics GMetrics GMetrics 0.5 org.sonatype.oss oss-parent 7 The GMetrics project provides calculation and reporting of size and complexity metrics for Groovy source code. jar http://gmetrics.sourceforge.net/ scm:svn:https://gmetrics.svn.sourceforge.net/svnroot/gmetrics/tags/GMetrics-0.4 scm:svn:https://gmetrics.svn.sourceforge.net/svnroot/gmetrics/tags/GMetrics-0.4 https://gmetrics.svn.sourceforge.net/svnroot/gmetrics/tags/GMetrics-0.4 org.codehaus.groovy groovy-all 1.7.5 log4j log4j 1.2.13 org.apache.ant ant 1.7.1 junit junit 3.8.2 test org.codenarc CodeNarc 0.16 test release-sign-artifacts performRelease true org.codehaus.gmaven gmaven-plugin 1.3 1.7 1.5 1.5 compile testCompile org.codehaus.gmaven.runtime gmaven-runtime-1.7 1.2 org.codehaus.groovy groovy-all org.codehaus.groovy groovy-all 1.7.5 org.apache.maven.plugins maven-compiler-plugin 1.5 1.5 org.apache.maven.plugins maven-jar-plugin ${pom.version} org.apache.maven.plugins maven-javadoc-plugin attach-javadocs jar maven-assembly-plugin src/assembly/assembly.xml org.apache.maven.plugins maven-release-plugin 2.0-beta-7 https://gmetrics.svn.sourceforge.net/svnroot/gmetrics/tags org.apache.maven.plugins maven-site-plugin 2.2 org.apache.maven.plugins maven-project-info-reports-plugin 2.2 dependencies license org.codehaus.mojo cobertura-maven-plugin 2.3 html xml org.apache.maven.plugins maven-javadoc-plugin 2.4 chrismair Chris Mair chrismair@users.sourceforge.net https://sourceforge.net/users/chrismair architect developer -4 Apache 2 http://www.apache.org/licenses/LICENSE-2.0.txt repo GMetrics-0.5/NOTICE.txt0000644001501200150120000000063211313060222014122 0ustar miguelmiguel ====================================================================== == NOTICE file corresponding to section 4 d of the Apache License, == == Version 2.0, in this case for the GMetrics distribution. == ====================================================================== This product includes software developed by the Apache Software Foundation (http://www.apache.org). GMetrics-0.5/src/0000755001501200150120000000000011503164741013202 5ustar miguelmiguelGMetrics-0.5/src/site/0000755001501200150120000000000011705670714014154 5ustar miguelmiguelGMetrics-0.5/src/site/resources/0000755001501200150120000000000011705670714016166 5ustar miguelmiguelGMetrics-0.5/src/site/resources/SampleGMetricsReport.html0000644001501200150120000040450411705035417023131 0ustar miguelmiguelGMetrics Report: Sample

GMetrics Report: Sample

Report timestamp: Jan 16, 2012 9:58:22 AM

Metric Results

Package/Class/MethodComplexity (total)Complexity (average)Method Lines (total)Method Lines (average)
[p] All packages6401.725066.5
[p] org6401.725066.5
[p] org/gmetrics6401.725066.5
[c] org.gmetrics.GMetricsRunner11.01919.0
[m] execute111919
[p] org/gmetrics/analyzer131.9598.4
[c] org.gmetrics.analyzer.AnalysisContextN/AN/AN/AN/A
[c] org.gmetrics.analyzer.FilesystemSourceAnalyzer131.9598.4
[m] analyze1188
[m] getSourceDirectories1133
[m] processDirectory441919
[m] processFile331313
[m] applyMetricsToClass1188
[m] matches2244
[m] initializeWildcardPatterns1144
[c] org.gmetrics.analyzer.SourceAnalyzerN/AN/AN/AN/A
[p] org/gmetrics/ant341.51486.7
[c] org.gmetrics.ant.AntFileSetSourceAnalyzer241.61097.3
[m] analyze1177
[m] getSourceDirectories1177
[m] calculatePackageLevelMetricResults1144
[m] calculatePackageLevelMetricResults1155
[m] processFileSet221313
[m] processFile221616
[m] applyMetricsToClass1188
[m] findResultsNodeForPath1133
[m] findPackageResultsNodeForPath2277
[m] findPackageResultsNodeForPath1144
[m] resultFromFirstMatchOrElseNull2277
[m] findOrAddResultsNodeForPath331212
[m] removeBaseDirectoryPrefix2277
[m] removeLeadingSlash3333
[m] <init>1166
[c] org.gmetrics.ant.GMetricsTask91.5366.0
[m] execute221515
[m] addFileset1144
[m] addConfiguredReport221010
[m] createMetricSet2233
[m] createSourceAnalyzer1133
[m] createGMetricsRunner1111
[c] org.gmetrics.ant.Report11.033.0
[m] addConfiguredOption1133
[c] org.gmetrics.ant.ReportOptionN/AN/AN/AN/A
[p] org/gmetrics/formatter41.3196.3
[c] org.gmetrics.formatter.FormatterN/AN/AN/AN/A
[c] org.gmetrics.formatter.FormatterFactory11.066.0
[m] getFormatter1166
[c] org.gmetrics.formatter.PercentageFormatter22.01010.0
[m] format221010
[c] org.gmetrics.formatter.ToStringFormatter11.033.0
[m] format1133
[p] org/gmetrics/metric2411.78866.2
[c] org.gmetrics.metric.AbstractAstVisitor61.5164.0
[m] isFirstVisit2277
[m] sourceLine1133
[m] getSourceUnit1133
[m] isSyntheticNonRunMethod2233
[c] org.gmetrics.metric.AbstractMethodMetric122.45511.0
[m] applyToMethod2277
[m] applyToClosure2277
[m] calculateForClass331616
[m] addClosureFieldsToMetricResults331414
[m] addMethodsToMetricResults221111
[c] org.gmetrics.metric.AbstractMetric81.6234.6
[m] applyToPackage2266
[m] calculateForPackage1144
[m] applyToClass2266
[m] isNotAnInterface1133
[m] createAggregateMetricResult2244
[c] org.gmetrics.metric.AstVisitorN/AN/AN/AN/A
[c] org.gmetrics.metric.MethodMetricN/AN/AN/AN/A
[c] org.gmetrics.metric.MetricN/AN/AN/AN/A
[c] org.gmetrics.metric.MetricLevel31.093.0
[m] getNames1133
[m] toString1133
[m] <init>1133
[p] org/gmetrics/metric/abc671.62315.5
[c] org.gmetrics.metric.abc.AbcAstVisitor331.71045.5
[m] visitMethod3366
[m] visitBinaryExpression1144
[m] visitPrefixExpression1144
[m] visitPostfixExpression1144
[m] visitMethodCallExpression1144
[m] visitPropertyExpression1155
[m] visitConstructorCallExpression1144
[m] visitIfElse2266
[m] visitSwitch2277
[m] visitTryCatchFinally1155
[m] visitTernaryExpression1144
[m] visitBooleanExpression2266
[m] visitNotExpression2266
[m] handleExpressionContainingOperation551212
[m] countUnaryConditionals441313
[m] countUnaryConditionals1144
[m] isSingleVariable1133
[m] isFinalVariableDeclaration2244
[m] isNotEmptyStatement1133
[c] org.gmetrics.metric.abc.AbcMetric51.7196.3
[m] calculate2299
[m] calculate1166
[m] createAggregateMetricResult2244
[c] org.gmetrics.metric.abc.AbcVector41.0194.8
[m] getMagnitude1155
[m] toString1133
[m] squared1133
[m] <init>1188
[p] org/gmetrics/metric/abc/result251.6895.6
[c] org.gmetrics.metric.abc.result.AbcMetricResult41.3155.0
[m] getAt2233
[m] toString1133
[m] <init>1199
[c] org.gmetrics.metric.abc.result.AggregateAbcMetricResult211.6745.7
[m] calculateFunctions551717
[m] getCount1133
[m] getTotalAbcVector1133
[m] getAbcVector1133
[m] getAverageAbcVector1166
[m] getAt1133
[m] toString1133
[m] addChildrenToAbcVector1188
[m] calculateMinimum2244
[m] calculateMaximum2244
[m] includesFunction1133
[m] average3388
[m] <init>1199
[p] org/gmetrics/metric/classcount31.5105.0
[c] org.gmetrics.metric.classcount.ClassCountMetric31.5105.0
[m] calculateForClass1155
[m] calculateForPackage2255
[p] org/gmetrics/metric/coverage891.63706.9
[c] org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric271.91228.7
[m] applyToMethod2277
[m] applyToClosure1144
[m] calculateForClass442121
[m] calculateForPackage551717
[m] calculate1166
[m] getCoverageRatioForClass111010
[m] calculateCoverageForClassAndInnerClasses1144
[m] getOverallPackageMetricValue1144
[m] buildMethodResults331616
[m] calculateMethodResult2299
[m] logMissingMethodCoverageInformation2266
[m] findMethodElement1166
[m] containsClasses1133
[m] getCoberturaCoverageFile2299
[c] org.gmetrics.metric.coverage.CoberturaBranchCoverageMetric41.3268.7
[m] getCoverageRatioForSingleClass221010
[m] findLineElementsWithBranches1133
[m] getBranchCoverageRatio111313
[c] org.gmetrics.metric.coverage.CoberturaCoverageFile211.5896.4
[m] getOverallCoverageRate1144
[m] parseCoverageRate1155
[m] findMatchingPackageElement3377
[m] findPackageElementMatchingPrefix1199
[m] findPackageWithPrefix3388
[m] findPackageElement1144
[m] findClassElement1144
[m] findInnerClasses1144
[m] hasInnerClasses1133
[m] findMethodElement221111
[m] findAllMethodElements2277
[m] getCoberturaXml221010
[m] createNonValidatingXmlSlurper1188
[m] <init>1155
[c] org.gmetrics.metric.coverage.CoberturaLineCoverageMetric31.5157.5
[m] getCoverageRatioForSingleClass221010
[m] getLinesCoverageRatio1155
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser202.0757.5
[m] matchesCoberturaMethod2288
[m] numberOfParameters1133
[m] parseSignatureParameterTypes331616
[m] extractParameters1155
[m] parseCoberturaSignatureParameterTypes2277
[m] parseParameterTypes221212
[m] processStandaloneCharacter441111
[m] processCharacterWithinFullyQualifiedTypeName2288
[m] classNameNoPackage2244
[m] <init>1111
[c] org.gmetrics.metric.coverage.CoberturaSignatureParser$ParseContext81.3233.8
[m] startFullyQualifiedTypeName1133
[m] withinFullyQualifiedTypeName1133
[m] appendToFullyQualifiedTypeName1133
[m] terminateFullyQualifiedTypeName2266
[m] startNewArrayType1133
[m] processPrimitiveTypeCode2255
[c] org.gmetrics.metric.coverage.Ratio61.2204.0
[m] plus1144
[m] toBigDecimal2244
[m] asType1144
[m] toString1144
[m] <init>1144
[p] org/gmetrics/metric/crap103.33612.0
[c] org.gmetrics.metric.crap.CrapMetric103.33612.0
[m] calculate1144
[m] calculate662424
[m] calculateCrapScore3388
[p] org/gmetrics/metric/cyclomatic181.5584.8
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityAstVisitor141.4464.6
[m] visitMethod3388
[m] visitIfElse1144
[m] visitWhileLoop1144
[m] visitForLoop1144
[m] visitSwitch1144
[m] visitCatchStatement1144
[m] visitBinaryExpression1144
[m] visitTernaryExpression1144
[m] visitPropertyExpression2244
[m] handleExpressionContainingOperation2266
[c] org.gmetrics.metric.cyclomatic.CyclomaticComplexityMetric42.0126.0
[m] calculate2266
[m] calculate2266
[p] org/gmetrics/metric/fieldcount62.0196.3
[c] org.gmetrics.metric.fieldcount.FieldCountAstVisitor42.0105.0
[m] getNumberOfFields1133
[m] visitClass3377
[c] org.gmetrics.metric.fieldcount.FieldCountMetric22.099.0
[m] calculateForClass2299
[p] org/gmetrics/metric/linecount122.0386.3
[c] org.gmetrics.metric.linecount.ClassLineCountMetric22.099.0
[m] calculateForClass2299
[c] org.gmetrics.metric.linecount.ClassLineCountAstVisitor22.066.0
[m] visitClass2266
[c] org.gmetrics.metric.linecount.MethodLineCountAstVisitor52.5126.0
[m] visitMethod3366
[m] visitClosureExpression2266
[c] org.gmetrics.metric.linecount.MethodLineCountMetric31.5115.5
[m] calculate2266
[m] calculate1155
[p] org/gmetrics/metric/methodcount72.3217.0
[c] org.gmetrics.metric.methodcount.MethodCountAstVisitor52.5126.0
[m] getNumberOfMethods1133
[m] visitClass4499
[c] org.gmetrics.metric.methodcount.MethodCountMetric22.099.0
[m] calculateForClass2299
[p] org/gmetrics/metricregistry31.0165.3
[c] org.gmetrics.metricregistry.DefaultMetricRegistry31.0165.3
[m] getMetricClass1144
[m] getAllMetricNames1144
[m] buildMetricClassMap1188
[c] org.gmetrics.metricregistry.MetricRegistryN/AN/AN/AN/A
[c] org.gmetrics.metricregistry.MetricRegistryHolderN/AN/AN/AN/A
[p] org/gmetrics/metricset281.11435.7
[c] org.gmetrics.metricset.CompositeMetricSet31.0113.7
[m] addMetric1144
[m] addMetricSet1144
[m] getMetrics1133
[c] org.gmetrics.metricset.DefaultMetricSet11.033.0
[m] getMetrics1133
[c] org.gmetrics.metricset.GroovyDslMetricSet21.02110.5
[m] getMetrics1133
[m] <init>111818
[c] org.gmetrics.metricset.ListMetricSet21.0105.0
[m] getMetrics1133
[m] <init>1177
[c] org.gmetrics.metricset.MetricSetN/AN/AN/AN/A
[c] org.gmetrics.metricset.MetricSetBuilder21.073.5
[m] metricset1144
[m] getMetricSet1133
[c] org.gmetrics.metricset.TopLevelDelegate141.2705.8
[m] metricset1144
[m] metricset111010
[m] metric1155
[m] metric1166
[m] metric111010
[m] propertyMissing1155
[m] methodMissing221010
[m] description1144
[m] getMetricSet1133
[m] assertClassImplementsMetricInterface1144
[m] addMetric2266
[m] isNotWithinAnotherMetricDefinition1133
[c] org.gmetrics.metricset.MetricSetDelegate41.3217.0
[m] methodMissing221515
[m] findMetric1133
[m] <init>1133
[p] org/gmetrics/report1321.66488.0
[c] org.gmetrics.report.AbstractMetricCriteriaFilterN/AN/AN/AN/A
[c] org.gmetrics.report.AbstractReportWriter201.7766.3
[m] writeReport221414
[m] writeReportToStandardOut1144
[m] writeReportToFile2288
[m] initializeDefaultResourceBundle221212
[m] getResourceBundleString2299
[m] getResourceBundleStringOrNull2299
[m] initializeFormatters2277
[m] formatMetricResultValue2244
[m] getFormattedTimestamp1144
[m] isWriteToStandardOut2233
[m] initializeResourceBundle1111
[m] getTimestamp1111
[c] org.gmetrics.report.BasicHtmlReportWriter271.816811.2
[m] writeReport111717
[m] buildMetricResultColumns221111
[m] buildCSS1188
[m] buildHeaderSection1188
[m] buildBodySection111111
[m] buildReportTimestamp1166
[m] buildResultsTable221717
[m] getMetricResultColumnHeading1144
[m] buildResultsTableRowRecursively883030
[m] buildResultsRowForLevel2299
[m] prefixForResultsNodeLevel1188
[m] buildMetricDescriptions222424
[m] getDescriptionForMetricName1144
[m] buildVersionFooter1188
[m] buildTitle2233
[c] org.gmetrics.report.FunctionsCriteriaFilter21.063.0
[m] setFunctions1133
[m] includesFunction1133
[c] org.gmetrics.report.LevelsCriteriaFilter21.063.0
[m] setLevels1133
[m] includesLevel1133
[c] org.gmetrics.report.MetricCriteriaFilterHelper61.5235.8
[m] includesName3377
[m] parseCriteria1177
[m] parseCriteriaForSingleMetric1166
[m] parseCommaSeparatedList1133
[c] org.gmetrics.report.MetricsCriteriaFilter31.563.0
[m] setMetrics1133
[m] includesMetric2233
[c] org.gmetrics.report.ReportWriterN/AN/AN/AN/A
[c] org.gmetrics.report.SeriesValue21.073.5
[m] toString1133
[m] <init>1144
[c] org.gmetrics.report.SingleSeriesCriteriaFilter331.91317.7
[m] buildSeriesData112020
[m] findMatchingValuesForChildren1166
[m] getResultsNodeFullName331414
[m] findMatchingValues441515
[m] sortValuesIfApplicable3399
[m] limitToGreaterThanIfApplicable2277
[m] limitToLessThanIfApplicable2277
[m] limitToMaxResultsIfApplicable3399
[m] assertMetricExists1144
[m] assertLevelExists1133
[m] assertFunctionExists1144
[m] assertValidSortValue2233
[m] assertValidMaxResultsValue331111
[m] assertValidGreaterThanValue1133
[m] assertValidLessThanValue1133
[m] assertValidNumberValue331010
[m] findMetric1133
[c] org.gmetrics.report.SingleSeriesHtmlReportWriter111.1969.6
[m] writeReport111818
[m] buildHeaderSection1188
[m] buildCSS1188
[m] buildBodySection221313
[m] buildReportTimestamp1166
[m] buildResultsTable111313
[m] getSeriesValueNameHeading1199
[m] buildSeriesValueRow1199
[m] getMetricResultColumnHeading1144
[m] buildVersionFooter1188
[c] org.gmetrics.report.XmlReportWriter261.71298.6
[m] writeReport111717
[m] buildReportElement1155
[m] buildProjectElement1199
[m] buildPackageElements1133
[m] buildElement4477
[m] buildPackageElement552020
[m] buildClassElement111010
[m] buildMethodElement111010
[m] buildMetricElements1177
[m] buildMetricElement551414
[m] isRoot1133
[m] buildMetricsElement111414
[m] getDescriptionForMetric1144
[m] isPackage1133
[m] cdata1133
[p] org/gmetrics/result391.51254.8
[c] org.gmetrics.result.ClassMetricResult21.073.5
[m] toString1133
[m] <init>1144
[c] org.gmetrics.result.FunctionNamesN/AN/AN/AN/A
[c] org.gmetrics.result.MethodKey61.2234.6
[m] equals2244
[m] hashCode1144
[m] toString1144
[m] <init>1155
[m] <init>1166
[c] org.gmetrics.result.MetricResultN/AN/AN/AN/A
[c] org.gmetrics.result.MetricResultBuilder231.8644.9
[m] createAggregateMetricResult111313
[m] toString1133
[m] calculateFunctions111010
[m] calculateCount1133
[m] total2233
[m] calculateTotal2255
[m] minimum2233
[m] calculateMinimum2244
[m] maximum2233
[m] calculateMaximum2244
[m] average2233
[m] calculateAverage3377
[m] shouldCalculateFunction2233
[c] org.gmetrics.result.NumberMetricResult41.3165.3
[m] getAt2233
[m] toString1133
[m] <init>111010
[c] org.gmetrics.result.SingleNumberMetricResult41.3155.0
[m] getAt2233
[m] toString1133
[m] <init>1199
[p] org/gmetrics/resultsnode271.2994.5
[c] org.gmetrics.resultsnode.ClassResultsNode81.3294.8
[m] containsClassResults1133
[m] getMetricResult1144
[m] addClassMetricResult221010
[m] toString1133
[m] addMethodMetricResult2266
[m] <init>1133
[c] org.gmetrics.resultsnode.MethodResultsNode71.0243.4
[m] containsClassResults1133
[m] getMetricResult1144
[m] addMetricResult1144
[m] getChildren1133
[m] toString1133
[m] <init>1133
[m] <init>1144
[c] org.gmetrics.resultsnode.PackageResultsNode121.3465.1
[m] getChildren1133
[m] containsClassResults1133
[m] getMetricResult1144
[m] addChildIfNotEmpty2277
[m] addChild1155
[m] applyMetric331414
[m] toString1133
[m] <init>1133
[m] <init>1144
[c] org.gmetrics.resultsnode.ResultsNodeN/AN/AN/AN/A
[p] org/gmetrics/source372.11116.2
[c] org.gmetrics.source.AbstractSourceCode162.7518.5
[m] getLines2266
[m] line3355
[m] getAst331616
[m] getLineNumberForCharacterIndex551616
[m] isValid1133
[m] normalizePath2255
[c] org.gmetrics.source.SourceCodeN/AN/AN/AN/A
[c] org.gmetrics.source.SourceCodeCriteria88.01717.0
[m] matches881717
[c] org.gmetrics.source.SourceFile71.2254.2
[m] getName1133
[m] getPath1133
[m] getText2266
[m] toString1133
[m] createSourceUnit1155
[m] <init>1155
[c] org.gmetrics.source.SourceString61.2183.6
[m] getText1133
[m] setPath2233
[m] toString1133
[m] createSourceUnit1133
[m] <init>1166
[p] org/gmetrics/util812.42336.9
[c] org.gmetrics.util.AstUtil382.5946.3
[m] isEmptyMethod1133
[m] isClosureField2233
[m] isBlock1133
[m] isEmptyBlock4455
[m] getMethodArguments331010
[m] isMethodCall331010
[m] isMethodCall2244
[m] isMethodCall3399
[m] isMethodNamed1144
[m] getAnnotation2266
[m] getVariableExpressions991616
[m] isFinalVariable441414
[m] isFromGeneratedSourceCode1133
[m] respondsTo1133
[m] <init>1111
[c] org.gmetrics.util.GMetricsVersion11.033.0
[m] getVersion1133
[c] org.gmetrics.util.PathUtil132.6336.6
[m] getName3377
[m] getParent3399
[m] normalize2233
[m] toPackageName441313
[m] <init>1111
[c] org.gmetrics.util.PropertyUtil63.02311.5
[m] setPropertyFromString552222
[m] <init>1111
[c] org.gmetrics.util.WildcardPattern133.34611.5
[m] matches4477
[m] containsWildcards1133
[m] convertStringWithWildcardsToRegex552424
[m] <init>331212
[p] org/gmetrics/util/io101.4344.9
[c] org.gmetrics.util.io.ClassPathResource41.3144.7
[m] getInputStream1133
[m] getInputStream2277
[m] <init>1144
[c] org.gmetrics.util.io.DefaultResourceFactory42.0126.0
[m] getResource3399
[m] isUrl1133
[c] org.gmetrics.util.io.ResourceN/AN/AN/AN/A
[c] org.gmetrics.util.io.ResourceFactoryN/AN/AN/AN/A
[c] org.gmetrics.util.io.UrlResource21.084.0
[m] getInputStream1144
[m] <init>1144

Metric Descriptions

#Metric NameDescription
1CyclomaticComplexityMeasures the (McCabe) Cyclomatic Complexity of source code. See the Wikipedia entry for Cyclomatic Complexity.
2MethodLineCountCounts the number of lines in each method.

GMetrics 0.5

GMetrics-0.5/src/site/resources/css/0000755001501200150120000000000011705670714016756 5ustar miguelmiguelGMetrics-0.5/src/site/resources/css/site.css0000644001501200150120000000006711237460662020436 0ustar miguelmigueltt { font-size: 110%; font-weight: bolder; }GMetrics-0.5/src/site/resources/SampleGMetricsXmlReport.xml0000644001501200150120000021445511705035420023444 0ustar miguelmiguel src\main\groovyGMetrics-0.5/src/site/resources/SampleGMetricsSingleSeriesReport.html0000644001501200150120000001000511705035420025425 0ustar miguelmiguelMethods With Highest Line Count

Methods With Highest Line Count

Report timestamp: Jan 16, 2012 9:58:24 AM

MethodMethod Lines (total)
org.gmetrics.report.BasicHtmlReportWriter#buildResultsTableRowRecursively30
org.gmetrics.metric.crap.CrapMetric#calculate24
org.gmetrics.report.BasicHtmlReportWriter#buildMetricDescriptions24
org.gmetrics.util.WildcardPattern#convertStringWithWildcardsToRegex24
org.gmetrics.util.PropertyUtil#setPropertyFromString22
org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric#calculateForClass21
org.gmetrics.report.SingleSeriesCriteriaFilter#buildSeriesData20
org.gmetrics.report.XmlReportWriter#buildPackageElement20
org.gmetrics.GMetricsRunner#execute19
org.gmetrics.analyzer.FilesystemSourceAnalyzer#processDirectory19
org.gmetrics.metricset.GroovyDslMetricSet#<init>18
org.gmetrics.report.SingleSeriesHtmlReportWriter#writeReport18
org.gmetrics.metric.abc.result.AggregateAbcMetricResult#calculateFunctions17
org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric#calculateForPackage17
org.gmetrics.report.BasicHtmlReportWriter#writeReport17
org.gmetrics.report.BasicHtmlReportWriter#buildResultsTable17
org.gmetrics.report.XmlReportWriter#writeReport17
org.gmetrics.source.SourceCodeCriteria#matches17
org.gmetrics.ant.AntFileSetSourceAnalyzer#processFile16
org.gmetrics.metric.AbstractMethodMetric#calculateForClass16

GMetrics 0.5

GMetrics-0.5/src/site/apt/0000755001501200150120000000000011705670714014740 5ustar miguelmiguelGMetrics-0.5/src/site/apt/gmetrics-XmlReportWriter.apt0000644001501200150120000002074311414444620022410 0ustar miguelmiguel -------------------------------------------------- GMetrics XmlReportWriter -------------------------------------------------- XmlReportWriter ~~~~~~~~~~~~~~~~ * Description ~~~~~~~~~~~~~ The <<>> class produces an XML report of <> results. See a {{{./SampleGMetricsXmlReport.xml}Sample Report}}. * Option Nested Elements ~~~~~~~~~~~~~~~~~~~~~~~~ The <