We are using SonarQube 7.1 (build 11001)
In our custom Quality Gate we have the next Metric:
- Cognitive Complexity is greater than 10(warning) 15(error)
We have no method with Cognitive Complexity greater than 15 but Quality Gate is failing because the aggregated Cognitive Complexity of the whole project is 628
Without Cognitive Complexity metric in the Quality Gate, methods above 15 are included in Critical Issues that is perfect. But I would like to understand what is the meaning of having the metric fail aggregating my whole project with a lot of methods with values under 15 instead of only counting methods above 15.