Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
March 13, 2007 Software Metrics Tool for D | ||||
---|---|---|---|---|
| ||||
Hello, As anyone a software metric tool taht can easily analyse D code ? Regards, Laurent. |
March 14, 2007 Re: Software Metrics Tool for D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Laurent Dubuisson | "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 |
March 14, 2007 Re: Software Metrics Tool for D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexander Panek | 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 |
March 16, 2007 Re: Software Metrics Tool for D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | 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. |
March 30, 2007 Re: Software Metrics Tool for D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Laurent Dubuisson | 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. :-) |
Copyright © 1999-2021 by the D Language Foundation