Function cognitive complexity #16
Labels
codeclimate
Review by codeclimate
help wanted 🙏
Extra attention is needed
question
Further information is requested
Should not exceed 5
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
The text was updated successfully, but these errors were encountered: