dart-lang / stream_transform
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 30 units with 683 lines of code in units (77.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (292 lines of code)
    • 5 simple units (184 lines of code)
    • 21 very simple units (207 lines of code)
0% | 0% | 42% | 26% | 30%
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% | 42% | 26% | 30%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src0% | 0% | 43% | 27% | 28%
example0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
Stream aggregateSample()
in lib/src/aggregate_sample.dart
87 15 3
Stream combineLatest()
in lib/src/combine_latest.dart
95 13 3
Stream switchLatest()
in lib/src/switch.dart
67 13 0
Stream mergeAll()
in lib/src/merge.dart
43 12 1
Stream mergeExpanded()
in lib/src/merge.dart
45 10 0
Stream followedBy()
in lib/src/concatenate.dart
49 10 1
Stream _debounceAggregate()
in lib/src/rate_limit.dart
37 8 3
Stream takeUntil()
in lib/src/take_until.dart
34 7 1
Stream asyncWhere()
in lib/src/where.dart
19 6 1
Stream _throttleTrailing()
in lib/src/rate_limit.dart
35 5 1
Stream concurrentAsyncMap()
in lib/src/async_map.dart
19 5 1
Stream transformByHandlers()
in lib/src/from_handlers.dart
35 4 2
Stream audit()
in lib/src/rate_limit.dart
21 3 1
Stream startWithStream()
in lib/src/concatenate.dart
6 3 1
void handleData()
in lib/src/combine_latest.dart
7 2 2
Stream scan()
in lib/src/scan.dart
12 2 3
Stream _throttle()
in lib/src/rate_limit.dart
11 2 1
Stream _asyncMapThen()
in lib/src/async_map.dart
14 2 1
Stream whereType()
in lib/src/where.dart
3 2 0
Stream switchMap()
in lib/src/switch.dart
3 1 1