Hello Alex,
Yes, I am still working on that.. and then I could integrate.
On Tue, Jun 28, 2011 at 11:18 PM, Alexandre Bergel <alexandre.bergel(a)me.com>
wrote:
shouldn't it be part of Moose?
Alexandre
On 28 Jun 2011, at 17:44, Andre Hora wrote:
Hello Cesar,
By the moment, you can try the following steps to export the metrics:
1) First, run the script below in the workspace:
Gofer new
squeaksource: 'FameImportExportEx';
package: 'Fame-ImportExport-Extensions';
load.
2) Then, run the script below setting the metrics you want to export and the name of your
model.
You can also change allClasses by others entities such as allModelClasses, allMethods,
allNamespaces, and so on.. (see the class MooseAbstractGroup).
| stream printer visitor model |
stream := MultiByteFileStream newFileNamed: 'my-metrics.csv'.
model := (MooseModel root) entityNamed: 'MyModelName'.
printer := FMTabularPrinter new stream: stream.
printer separator: $,.
visitor := RepositoryTabularVisitor new.
visitor printer: printer.
visitor selectors: #(#numberOfLinesOfCode #numberOfMethods #fanIn #fanOut).
visitor model: model allClasses.
visitor basicRun.
The result is a CSV in the directory: Contents/Resources of your image, like this:
entityName,numberOfLinesOfCode,numberOfMethods,fanIn,fanOut
Collection,1414,227,20,35
NotFound,40,8,4,4
ArrayedCollection,318,37,18,7
SizeMismatch,8,2,1,1
SequenceableCollection,2023,225,10,24
HashedCollection,167,35,5,5
CollectionIsEmpty,22,5,2,4
regards,
On Tue, Jun 28, 2011 at 4:23 PM, Alexandre Bergel <alexandre.bergel(a)me.com> wrote:
Ok
Alexandre
On 28 Jun 2011, at 16:20, Andre Hora wrote:
Hello Cesar,
I am working on that and I hope next week it will be possible.
Then I can tell how to do that.
For now it is not automatic.. you should write some scripts.
regards,
2011/6/28 César Couto <cesarfmc(a)dcc.ufmg.br>
I am a PhD student at UFMG, Brazil, and I'm working with source code
metrics. I have a FAMIX model generated by the inFusion tool and I
would like to know if the Moose can export source code metrics (LOC,
WMC, LCOM, etc) of Java classes to .CSV ou XML files?
Is there any plugin of the Moose that have this functionality?
Cesar Couto
--
http://www.decom.cefetmg.br/cesar
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Andre Hora
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Andre Hora
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
--
Andre Hora
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch