RT for rt.cpan.org
Skip Menu
|
Bug #112230 for Perl-Metrics-Simple: McCube Complexity
Active bugs
Resolved bugs
Rejected bugs
This queue is for tickets about the
Perl-Metrics-Simple CPAN distribution
.
Report information
The Basics
Id:
112230
Status:
new
Priority:
0/
Queue:
Perl-Metrics-Simple
People
Owner:
Nobody in particular
Requestors:
0x62ash [...] gmail.com
Cc:
AdminCc:
Bug Information
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)
History
Show all quoted text
Sun Feb 21 05:48:09 2016
0x62ash [...] gmail.com - Ticket created
Subject:
McCube Complexity
Date:
Sun, 21 Feb 2016 13:47:59 +0300
To:
bug-Perl-Metrics-Simple [...] rt.cpan.org
From:
Alexander Batyrshin <0x62ash [...] gmail.com>
Hello, Ive tried simple test and calculcated McCube complexity looks wrong. 1. sub test { if (1) { } else { } if (2) { } else { } } Expect - 4, Got - 5 2. sub test { if (1) { } else { } if (2) { } else { } if (3) { } else { } } Expect - 8, Got - 7