dart-lang / glob
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 40 units with 550 lines of code in units (60.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (46 lines of code)
    • 9 simple units (258 lines of code)
    • 30 very simple units (246 lines of code)
0% | 0% | 8% | 46% | 44%
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% | 8% | 46% | 44%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src0% | 0% | 9% | 48% | 41%
lib0% | 0% | 0% | 29% | 70%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
List split()
in lib/src/ast.dart
46 13 1
Stream list()
in lib/src/list_tree.dart
49 10 3
AstNode? _parseRange()
in lib/src/parser.dart
34 10 0
static void _addGlob()
in lib/src/list_tree.dart
35 9 3
Iterable listSync()
in lib/src/list_tree.dart
45 9 3
Match? matchAsPrefix()
in lib/glob.dart
17 8 2
String _toRegExp()
in lib/src/ast.dart
21 7 0
AstNode _parseLiteral()
in lib/src/parser.dart
16 7 1
OptionsNode flattenOptions()
in lib/src/ast.dart
30 6 0
SequenceNode _parseSequence()
in lib/src/parser.dart
11 6 1
factory ListTree()
in lib/src/list_tree.dart
20 5 2
17 5 3
AstNode _parseNode()
in lib/src/parser.dart
11 5 1
AstNode? _parseOptions()
in lib/src/parser.dart
11 5 0
Stream list()
in lib/src/list_tree.dart
13 4 2
13 4 3
void remove()
in lib/src/stream_pool.dart
5 4 1
factory Glob()
in lib/glob.dart
8 3 4
8 3 1
String _toRegExp()
in lib/src/ast.dart
13 3 0