We are currently refactoring some old code and I would like to track the Cyclomatic & Cognetive Complexity for each PR. Unfortunately it’s only available for the whole code base.
How can I monitor that we are in the right direction ? Each time we are pushing new code the complexity of the code that was refactored is lower that the recommended values ?
Another question that came up is how to set the quality gate value.
For cyclomatic it is said that the target should be around 10. But it seems that the quality gate consider the sum based on all files.