- Notifications
You must be signed in to change notification settings - Fork22
Open
Description
I apologize if this isn't the correct repo to report this
CodeClimate reports the Cognitive Complexity of the following function as 14
I believe the value should be 12
It seems that CodeClimate is incorrectly incrementing thecontinue
statements
functiontestFunction($array){if (false) {return; }$file ='';$line =0;if (false) {thrownew \RuntimeException('false was true!'); }foreach ($arrayas$key =>$val) {if (\is_int($key)) {continue; }if (\is_string($val)) {continue; }if (\is_array($val)) {foreach ($valas$val2) {// empty } } }}
continue;
should not increment
continue LABEL;
should increment
Metadata
Metadata
Assignees
Labels
No labels