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.
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?
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.