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 understand.
Analysis of Cognitive Complexity with Cyclomatic Complexity Metric of Software
A Suite of Object-Oriented Cognitive Complexity Metrics
See Also:
06 June 2025