matkoch / resharper-cognitivecomplexity

https://plugins.jetbrains.com/plugin/12024-cognitivecomplexity
MIT License
200 stars 7 forks source link

Why 'continue' increases complexity? #12

Closed nick-morhun closed 4 years ago

nick-morhun commented 4 years ago

While Rider offers us to invert if-s and add 'continue' statements to reduce nesting, this increases the metric. I looked this up in the paper and it only mentions the case of 'continue to a label' (which appears to be some Java construct analogous to 'goto').

matkoch commented 4 years ago

Fixed in 2020.2.2