Re: CRAP for C++ ?
Srdjan Todorovic <[email protected]>
| Newsgroups | gmane.comp.programming.refactoring |
|---|---|
| Message-ID | <[email protected]> |
Hello, On 02/11/2009, Adam Sroka <[email protected]> wrote: > AFAIK, crap4j is the only widely adopted implementation, written by > the guys who invented the metric. There was talk of someone creating a > C# port. However, you can implement it yourself. All you need is > coverage and cyclomatic complexity. Then, apply the formula: > > CRAP(m) = comp(m)^2 * (1 – cov(m)/100)^3 + comp(m) > > where comp(m) is cyclomatic complexity and cov(m) is test coverage. Yes but I'd need some way of automatically obtaining the test coverage and cyclomatic complexity. Regards, Srdjan > On Mon, Nov 2, 2009 at 8:27 AM, Mirko Stocker <[email protected]> wrote: >> >> >> >> Hello >> >> On Monday 02 November 2009 16:35:29 Srdjan Todorovic wrote: >> > Does anyone know of any CRAP frameworks for C++? >> >> I don't think this qualifies as a CRAP framework, but PMD has as tool to >> detect >> duplicated code [1], maybe that's a start.. >> >> [1] http://pmd.sourceforge.net/cpd.html >> >> Regards >> >> Mirko ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/refactoring/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/refactoring/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/