On Tue, Jul 24, 2012 at 2:34 PM, Dennis Schenk <d.schenk@students.unibe.ch> wrote:
Hi all,

Whats the best way to get LOC for nested FAMIXNamespaces? 

Lets say I'm looking at a FAMIX model of argouml. I used the "Infer Namespace Parents Based on Names" command in the Moose Panel.

I have a namespace argouml (org.argouml), and a namespace profile (org.argouml.profile).

Calling numberOfLinesOfCode on the second namespace gives me a correct number of around 1000 (I assume because the "children" of profile are actually FAMIXClasses). Calling it on the first one returns 0.

So what would be the best way to get LOC on parent namespaces like "org", or "org.argouml"? 
I would do something like that in your namespace like "org":
self allRecursiveScopes sum: #numberOfLinesOfCode 
Also is this by design that LOC does not get propagated up in the hierarchy or is it even a bug?

Cheers,
Dennis

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
Andre Hora