-
Notifications
You must be signed in to change notification settings - Fork 178
Description
Describe the bug
In the docx report the following metrics show the sum of metric of all source file instead of max of the metric of all source files.
Cyclomatic Complexity XX-MAXCOMPLEXITY-XX
Cognitive Complexity XX-MAXCOGNITIVECOMPLEXITY-XX
Lines of code per file XX-MAXNCLOC-XX
The rest shows correctly the max value of all files as expected
Comment density (%) XX-MAXCOMMENTDENSITY-XX
Coverage XX-MAXCOVERAGE-XX
Duplication (%) XX-MAXDUPLICATION-XX
Example, for cyclomatic complexity the sum of all cyclomatic complexity is 815 but the max (on the screenshot) is 32 so 32 should be shown in the generated reports
docx report:
To reproduce
- generate docx reports
- Compare the metrics range table with values shown in sonarqube UI
Expected behavior
The max value should be shown for the 3 metrics:
Cyclomatic Complexity XX-MAXCOMPLEXITY-XX
Cognitive Complexity XX-MAXCOGNITIVECOMPLEXITY-XX
Lines of code per file XX-MAXNCLOC-XX
just like it is for these three:
Comment density (%) XX-MAXCOMMENTDENSITY-XX
Coverage XX-MAXCOVERAGE-XX
Duplication (%) XX-MAXDUPLICATION-XX
User environment
- Sonarqube: v10.7 Community Edition
- sonar-cnes-report: 5.0.2