www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Software Metrics Tool for D

reply Laurent Dubuisson <skaith users.sourceforge.net> writes:
Hello,

As anyone a software metric tool taht can easily analyse D code ?

Regards,
Laurent.
Mar 13 2007
parent reply "Alexander Panek" <alexander.panek brainsware.org> writes:
"Laurent Dubuisson" <skaith users.sourceforge.net> schrieb im Newsbeitrag
news:et64it$1n2o$1 digitalmars.com...
 As anyone a software metric tool taht can easily analyse D code ?
I don't know what you are aiming for exactly, but DMD's code coverage features might be what you're looking for? http://www.digitalmars.com/d/code_coverage.html Best regards, Alex
Mar 14 2007
parent reply Ary Manzana <ary esperanto.org.ar> writes:
Alexander Panek escribió:
 "Laurent Dubuisson" <skaith users.sourceforge.net> schrieb im Newsbeitrag
 news:et64it$1n2o$1 digitalmars.com...
 As anyone a software metric tool taht can easily analyse D code ?
I don't know what you are aiming for exactly, but DMD's code coverage features might be what you're looking for? http://www.digitalmars.com/d/code_coverage.html Best regards, Alex
I think he meant something like "if a function has more then 20 lines, warn me", etc... all configurable, of course. Something like http://eclipse-metrics.sourceforge.net/ (for Java). I've quickly looked at that plugin's source code and it uses JDT's api to do the stuff, so this could easily be done as a plugin to Descent. So if anyone is interested in making that plugin... Or maybe you can contact the author of Eclipse-Metrics and ask him to do a similar plugin for Descent... I think he'd like the idea. Regards, Ary
Mar 14 2007
parent reply Laurent Dubuisson <skaith users.sourceforge.net> writes:
Yes,

More in the OO Metrics ways.

I think I will start building this set of tools for D.

Simply because I need it for my own project...and it is a D project.

I downloaded the java one and Descent, I will have a look to.

Cheers,
Laurent.
Mar 16 2007
parent Ary Manzana <ary esperanto.org.ar> writes:
Laurent Dubuisson escribió:
 Yes,
 
 More in the OO Metrics ways.
 
 I think I will start building this set of tools for D.
 
 Simply because I need it for my own project...and it is a D project.
 
 I downloaded the java one and Descent, I will have a look to.
 
 Cheers,
 Laurent.
Laurent, just as a "Let's see if Descent worths it", I've downloaded Eclipse-Metrics's ( http://eclipse-metrics.sourceforge.net/ ) source code, kindly asked the author if I could use his work in Descent, and started working on it (yesterday). And, well, all of "number of..." and "lines of code in method" works, except if a function is outside a class: I have to fix this, because in Java every function is in a class. But tomorrow I'll finish it and make it a plug-in so you can download it. For those who haven't yet realized it: since Descent is almost a copy of JDT, any plugin for JDT, tweaked a little, should work as well in Descent. :-)
Mar 29 2007