resharper-cognitivecomplexity icon indicating copy to clipboard operation
resharper-cognitivecomplexity copied to clipboard

Local functions add complexity to method

Open aliyailina opened this issue 3 years ago • 3 comments

I frequently use local functions to improve readability of methods, but plugin sees it not as separate function, but part of method and adds complexity from local functions to complexity of method itself. Is there any way to avoid it (except making local functions as method)?

aliyailina avatar Jun 28 '22 08:06 aliyailina

Hi @aliyailina, there's no such setting and it's currently also not planned to introduce something like that. I will keep this issue open to track the demand.

matkoch avatar Jun 28 '22 13:06 matkoch