Skip Menu |
 

This queue is for tickets about the Perl-Metrics-Simple CPAN distribution.

Report information
The Basics
Id: 112254
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: Re: McCube Complexity
Date: Mon, 22 Feb 2016 12:56:05 +0300
To: bug-Perl-Metrics-Simple [...] rt.cpan.org
From: Alexander Batyrshin <0x62ash [...] gmail.com>
Download (untitled) / with headers
text/plain 395b
In previous post I made mistakes. Here is correct information: 1. sub test { if (1) { } else { } if (2) { } else { } } Expect - 3, Got - 5 https://en.wikipedia.org/wiki/Cyclomatic_complexity proves that for 2 seq IF complexity = 3. 2. sub test { if (1) { } else { } if (2) { } else { } if (3) { } else { } } Expect - 4, Got - 7


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.