Re: CRAP for C++ ?

Adam Sroka <[email protected]>
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
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.


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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.