Computing metrics for one Pharo class with Moose

Moose is often perceived as being a tool for analyzing Java or C++ systems. However, at its core, Moose is deeply integrated in Pharo and it is particularly useful for Pharo development.

While metrics computation is a peripheral capability, still often the first question people ask about Moose is: How do we compute a metric for a Pharo class?

Straightforward. Here is the magic code that opens the class in a dedicated browser that also displays the computed metrics:

((MoosePharoImporterTask new addClasses: {Morph}; run)
   allClasses entityNamed: Morph mooseName)
   openInMoose
Posted by Tudor Girba at 7 June 2013, 3:08 pm with tags moose, analysis link
|