Strange "+1" hint suddenly appearing next to for and if statements

Rider is inserting a little bubble with +1 next to all my if statements, for loops and some other things. Sometimes it says +2. It's barely visible in the dark mode theme unless selected.

I can't for the life of me figure out what this is telling me. And it's impossible to see. Any info on what this is and how to make it visible and/or hide it would be great. See screenshots below.

Note that it doesn't matter whether there are braces or not, nor how many lines are inside the braces.

 

Unselected:

Selected:

4 comments
Comment actions Permalink

This comes from the plugin "CognitiveComplexity". It shows you how the complexity is calculated.

Visit the plugin's homepage for more information

https://plugins.jetbrains.com/plugin/12024-cognitivecomplexity

0
Comment actions Permalink

Hello,

Andre is right, this is CognitiveComplexity plugin indeed, it was also discussed in the following forum thread. As for the highlight of the hints, you can change the color to make it more visible in Preferences | Editor | Color Scheme | Cognitive Complexity Hint.

0
Comment actions Permalink

Thanks so much! I feel like those hints add a fair amount of cognitive complexity of their own >_<

0
Comment actions Permalink

But you can change the visibility of this hints by clicking on this indicator ;)

 

0

Please sign in to leave a comment.