flutter / flutter-github-scripts.dart
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 61 units with 934 lines of code in units (40.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (254 lines of code)
    • 16 simple units (365 lines of code)
    • 39 very simple units (315 lines of code)
0% | 0% | 27% | 39% | 33%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
dart0% | 0% | 27% | 39% | 33%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 0% | 27% | 39% | 33%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
String toMarkdown()
in lib/github_datatypes.dart
50 19 3
static PullRequest fromGraphQL()
in lib/github_datatypes.dart
48 18 1
String toTsv()
in lib/github_datatypes.dart
52 16 0
String toTsv()
in lib/github_datatypes.dart
46 14 0
static Issue fromGraphQL()
in lib/github_datatypes.dart
35 13 1
factory DateRange()
in lib/github_queries.dart
23 11 6
double mean()
in lib/github_datatypes.dart
33 10 0
double stdev()
in lib/github_datatypes.dart
36 10 0
static TimelineItem fromGraphQL()
in lib/github_datatypes.dart
19 8 1
static Cluster byAssignees()
in lib/github_datatypes.dart
21 8 1
Stream searchIssuePRs()
in lib/github_queries.dart
43 7 1
String toString()
in lib/github_datatypes.dart
17 7 0
String summary()
in lib/github_datatypes.dart
19 7 5
String verbose()
in lib/github_datatypes.dart
25 7 2
static Cluster byLabel()
in lib/github_datatypes.dart
21 7 1
static Cluster byReviewers()
in lib/github_datatypes.dart
22 7 1
String toString()
in lib/github_queries.dart
24 6 0
static String queryToString()
in lib/github_queries.dart
20 6 2
static Actor? fromGraphQL()
in lib/github_datatypes.dart
11 6 1
static Cluster byAuthor()
in lib/github_datatypes.dart
14 6 1