Cognitive Complexity details are not shown per file/line in the Measures section

Hi Community

In SonarQube Enterprise Edition, even when there are no issues in a project, metrics like Cognitive Complexity are displayed as a total value in the Measures section. However, it is not possible to see in detail which file, function, or line these values come from. Especially in large projects, we would like to identify which files or functions contribute to the Cognitive Complexity value. We request that the Measures section (or another suitable area) provide detailed breakdowns of these metrics per file, function, or line.

Hi,

The Measures tab should give you a breakdown by directory and file if you click on Cognitive Complexity. If it doesn’t could you share a screenshot of what you do see, and the language(s) we’re talking about?

 
Thx,
Ann

Hi,

Thank you for your response.

We are using SonarQube Enterprise Edition. When we click on Cognitive Complexity in the Measures tab, we only see the total value for the project, but we do not get a breakdown by directory or file. There is no detailed view showing which files or functions contribute to the Cognitive Complexity value.

We are analyzing projects written in [your programming language, e.g., Java, C#, etc.].
I have attached a screenshot of what we see in the Measures tab for your reference.

Please let us know if you need any additional information.

Best regards,

On this screen, we expect to see an image similar to the screenshot above.

Hi,

Could you provide a screenshot of this?

The screenshot you’ve provided is of an issue. Issues are raised at the function/method level. That level of detail is not available as a measure.

 
Ann