[MetricsCollectorEngine] A new type of results file is generated.

0 views
Skip to first unread message

Damien Cuvillier

unread,
Jun 15, 2007, 11:38:13 AM6/15/07
to CodeSquale Devel
Hi friends,

After integration of our new MetricsCollectorEngine (MCE, for which
you can have more detailed explanations on
http://code.google.com/p/codesquale/wiki/HowMetricsAreCollectedInCodeSquale
), the XML hierarchy of the metrics results file has been improved.

Actually, the MCE offers the possibility to extend easily the
functionnality of CodeSquale by providing some mechanisms of templates
and static insertion of metric.

With this evolution, the template of the results file has been
reviewed to be more explicit and quickly customizable.
This improvement has for effect to make the XSLT file used for the
report generation no more compliant and to be updated.

Here is an example above the new hierarchy result file :


<?xml version="1.0" encoding="UTF-8" ?>
- <resultFile>
- <analysisInformations>
- <packageProperties>
<packageName>codesquale.utils</packageName>
<packageAbsolutePath>d:\tmp\src2\codesquale\utils</
packageAbsolutePath>
<numberOfFiles>2</numberOfFiles>
<weightOfFiles>1.53</weightOfFiles>
</packageProperties>
</analysisInformations>
- <sizeMetrics>
- <numberOfLines>
<numberOfTotalLines>56.0</numberOfTotalLines>
<numberOfPhysicalLines>48.0</numberOfPhysicalLines>
<numberOfBlankLines>8.0</numberOfBlankLines>
</numberOfLines>
- <numberOfClasses>
<all>2</all>
<public>2</public>
<others>0</others>
</numberOfClasses>
- <numberOfMethods>
<all>3</all>
<public>3</public>
<others>0</others>
</numberOfMethods>
- <numberOfAttributes>
<all>2</all>
<public>0</public>
<others>2</others>
</numberOfAttributes>
<numberOfImplementedInterfaces>0</numberOfImplementedInterfaces>
</sizeMetrics>
- <ratioMetrics>
- <averageMethodNumberPerClass>
<all>1.5</all>
<public>1.5</public>
<others>0</others>
</averageMethodNumberPerClass>
</ratioMetrics>
- <fileSetAnalysis>
<fileSetAnalysis />
- <fileAnalysis>
- <fileProperties>
<fileName />
<fileSize>0.52</fileSize>
<fileLastmodification>2007.05.24 - 13:57:55</fileLastmodification>
</fileProperties>
- <sizeMetrics>
- <numberOfLines>
<numberOfTotalLines>22</numberOfTotalLines>
<numberOfPhysicalLines>17</numberOfPhysicalLines>
<numberOfBlankLines>5</numberOfBlankLines>
</numberOfLines>
- <numberOfClasses>
<all>1</all>
<public>1</public>
<others>0</others>
</numberOfClasses>
- <numberOfMethods>
<all>3</all>
<public>3</public>
<others>0</others>
</numberOfMethods>
- <numberOfAttributes>
<all>2</all>
<public>0</public>
<others>2</others>
</numberOfAttributes>
<numberOfImplementedInterfaces>0</numberOfImplementedInterfaces>
</sizeMetrics>
- <classSetAnalysis>
- <classAnalysis>
- <classProperties>
<classProperties>Messages</classProperties>
</classProperties>
- <sizeMetrics>
- <numberOfMethods>
<all>1</all>
<public>1</public>
<others>0</others>
</numberOfMethods>
- <numberOfAttributes>
<all>2</all>
<public>0</public>
<others>2</others>
</numberOfAttributes>
<numberOfImplementedInterfaces>0</numberOfImplementedInterfaces>
</sizeMetrics>
</classAnalysis>
</classSetAnalysis>
</fileAnalysis>
- <fileAnalysis>
- <fileProperties>
<fileName />
<fileSize>1.01</fileSize>
<fileLastmodification>2007.05.24 - 13:57:55</fileLastmodification>
</fileProperties>
- <sizeMetrics>
- <numberOfLines>
<numberOfTotalLines>34</numberOfTotalLines>
<numberOfPhysicalLines>31</numberOfPhysicalLines>
<numberOfBlankLines>3</numberOfBlankLines>
</numberOfLines>
- <numberOfClasses>
<all>1</all>
<public>1</public>
<others>0</others>
</numberOfClasses>
- <numberOfMethods>
<all>3</all>
<public>3</public>
<others>0</others>
</numberOfMethods>
- <numberOfAttributes>
<all>0</all>
<public>0</public>
<others>0</others>
</numberOfAttributes>
<numberOfImplementedInterfaces>0</numberOfImplementedInterfaces>
</sizeMetrics>
- <classSetAnalysis>
- <classAnalysis>
- <classProperties>
<classProperties>Utilities</classProperties>
</classProperties>
- <sizeMetrics>
- <numberOfMethods>
<all>2</all>
<public>2</public>
<others>0</others>
</numberOfMethods>
- <numberOfAttributes>
<all>0</all>
<public>0</public>
<others>0</others>
</numberOfAttributes>
<numberOfImplementedInterfaces>0</numberOfImplementedInterfaces>
</sizeMetrics>
</classAnalysis>
</classSetAnalysis>
</fileAnalysis>
</fileSetAnalysis>
</resultFile>

Best regards.

See you.

Damien W.

Reply all
Reply to author
Forward
0 new messages