Author Topic: Check fails while its Message says it should not fail  (Read 598 times)

erwin1024

  • Newbie
  • *
  • Posts: 1
    • View Profile
Check fails while its Message says it should not fail
« 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.

Co Melissant

  • Staff
  • *
  • Posts: 4
    • View Profile
Re: Check fails while its Message says it should not fail
« Reply #1 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
« Last Edit: 22 December, 2020, 16:03:14 by Co Melissant »