Re: [macker-user] Get statistics with macker
Brought to you by:
barredijkstra,
melquiades
From: Paul C. <can...@po...> - 2008-02-18 05:43:12
|
Enrique — For this sort of purpose, you're better off with a tool like JDepend. Macker doesn't do metrics, only rules checking. You could build such a statistics tool on top of Macker if you wanted to, but Macker itself doesn't do this sort of this. Cheers, Paul On Feb 14, 2008, at 7:27 AM, Enrique Hernández Hernández wrote: > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Macker-user mailing list > Mac...@li... > https://lists.sourceforge.net/lists/listinfo/macker-user > > Macker home page: http://innig.net/macker/ |