dart-lang / io
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 27 units with 358 lines of code in units (49.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (70 lines of code)
    • 3 simple units (67 lines of code)
    • 23 very simple units (221 lines of code)
0% | 0% | 19% | 18% | 61%
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% | 19% | 18% | 61%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src0% | 0% | 21% | 20% | 57%
example0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
List shellSplit()
in lib/src/shell_words.dart
70 23 1
String? wrapWith()
in lib/src/ansi_code.dart
35 10 3
Future copyPath()
in lib/src/copy_path.dart
16 6 2
void copyPathSync()
in lib/src/copy_path.dart
16 6 2
int _permissionBitIndex()
in lib/src/permissions.dart
12 4 2
FutureOr isExecutable()
in lib/src/permissions.dart
12 3 3
void _checkUnmatchedQuote()
in lib/src/shell_words.dart
7 3 2
bool _doNothing()
in lib/src/copy_path.dart
9 3 2
void Function()
in lib/src/shared_stdin.dart
21 3 1
factory ProcessManager()
in lib/src/process_manager.dart
15 2 5
Future terminate()
in lib/src/shared_stdin.dart
8 2 0
void main()
in example/example.dart
10 2 1
void _preview()
in example/example.dart
10 2 3
bool _hasPermission()
in lib/src/permissions.dart
8 1 4
static Future terminateStdIn()
in lib/src/process_manager.dart
3 1 0
Future spawn()
in lib/src/process_manager.dart
20 1 8
Future spawnBackground()
in lib/src/process_manager.dart
25 1 8
Future spawnDetached()
in lib/src/process_manager.dart
9 1 8
void _onClosed()
in lib/src/process_manager.dart
1 1 0
factory _ForwardingSpawn()
in lib/src/process_manager.dart
26 1 4