Cognitive Complexity overview showing incorrect values

First the general info about the project:

  • GitHub repo
  • Analysis via GitHub Action
  • JS/TS
  • Project URL: SonarCloud

We have the problem that we want to use Cognitive Complexity for our project. But the overview found under Measures/Complexity (see here: SonarCloud) doesn’t seem to show the actual values. We have two issues that are raised for too high complexity in their respective files. Both of these values don’t show up in the overview.

Any ideas where the problem is here?

Hi Marius,

Could you please provide some screenshots and, ideally, also a simplified code so we can reproduce the problem?

sorry Marius, I missed the link to your project, I will have a look

hi,

we found the issue in the computation of cc on file level, here is the ticket to follow [JS-255] - Jira

Thank you very much. It’s nice to see auch active developer support on issues like this

1 Like