S3776 - Reason for the current default value of 15

Do you have any clear reason/explanation for the default maximum maximum value of 15?

Hello,

I guess you’re hoping for some scientific formula. I can’t give you one.

When we first implemented the Cognitive Complexity rule, we borrowed the default threshold of 10 from Cyclomatic Complexity. Then we ran the rule against a lot of open source projects and looked at the results. Ten seemed to be a “noisy” threshold, so we bumped it up until we got results we were more comfortable with, finally landing at 15.

Also, it’s worth noting that when we went through this same process for C, C++ (and Objective-C) we landed at a default threshold of 25.

 
HTH,
Ann