Why is this an issue?

Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.

Resources

Documentation

Articles & blog posts