The intent would be to set a quality gate - if complexity > threshold, then fail. This would force refactors to lower than the threshold.
The immediate feedback I would want is something like:
- Ah, shoot, I am modifying a method with a complexity of 35
- Sonar failed my build
- I look at the method, extract some code and I want to know if the now-refactored method has a complexity < threshold.
a. I could invoke sonar, but that interrupts my workflow from within IntelliJ
b. I’d rather right click / analyze / click some widget that reports - "The complexity of this method is X’
Make sense? The information is available in a few other locations. I don’t want my attention to be diverted from the IDE since that is where I will need to go to fix the error anyway.