[macker-user] Get statistics with macker
Brought to you by:
barredijkstra,
melquiades
|
From: Enrique H. H. <ehe...@in...> - 2008-02-14 13:32:11
|
Hello!
I need to get some statistics about my code like:
- Number of interfaces
- Number of classes than extends from a class in my architecture
- Number of EJB's
- ....
I can use reflection in order to get the superclass and interfaces of my class and use this information to know what kind of class is it, but I want to know if I can get this information with macker.
I try with this rule file (because I think that the message only appears if the class is an interface):
<macker>
<ruleset name="interface">
<pattern name="interface" filter="interface"/>
<message>interface</message>
</ruleset>
</macker>
But I get a message from any class of my code.
I need the result in a xml file like this:
<macker-report>
<timestamp>Thu Feb 14 14:30:39 CET 2008</timestamp>
<ruleset name="interface">
<message-rule severity="info">
<message>es.infodesa.Interface</message>
</message-rule>
</ruleset>
</macker-report>
Best regards
|