Cognitive Complexity | Sonar SonarSource | Sonar

Free White Paper

cognitive complexity

G. Ann Campbell

Community Manager

1 min read

Cognitive Complexity White Paper Cover and internal pages
Download White Paper


This paper describes Cognitive Complexity, a Sonar exclusive metric formulated to more accurately measure the relative understandability of methods. 

Cognitive Complexity breaks from using mathematical models to assess software maintainability by combining Cyclomatic Complexity precedents with human assessment. It yields method complexity scores that align well with how developers perceive maintainability.