MonkeyProof Solutions Forum

Code Checker for MATLAB => Checks and reports => Topic started by: erwin1024 on 05 December, 2020, 11:58:26

Title: Check fails while its Message says it should not fail
Post by: erwin1024 on 05 December, 2020, 11:58:26
Hi, when running the CC4M on a Matlab class file, I get an error of "too large complexity" (in wording as provided by my company's guidelines), but when I check the reportComplexity for this function, I see this message:

"Constructor has a complexity of (18) and exceeds the maximum of (20)."

This seems to be incorrect.
Title: Re: Check fails while its Message says it should not fail
Post by: Co Melissant on 07 December, 2020, 16:16:48
EDIT: Fixed with version 2.6.0

Hi,  Erwin

That looks like bad math indeed.

We can reproduce this, the issue is logged and caused by the fact the the constructor also is treated as a method.

Co

related ticket: #10481