Skip Menu |

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)



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