dart-lang / stream_transform
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 30 units with 683 lines of code in units (77.3% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (249 lines of code)
    • 8 medium size units (299 lines of code)
    • 6 small units (88 lines of code)
    • 13 very small units (47 lines of code)
0% | 36% | 43% | 12% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 36% | 43% | 12% | 6%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 37% | 44% | 11% | 7%
example0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
Stream combineLatest()
in lib/src/combine_latest.dart
95 13 3
Stream aggregateSample()
in lib/src/aggregate_sample.dart
87 15 3
Stream switchLatest()
in lib/src/switch.dart
67 13 0
Stream followedBy()
in lib/src/concatenate.dart
49 10 1
Stream mergeExpanded()
in lib/src/merge.dart
45 10 0
Stream mergeAll()
in lib/src/merge.dart
43 12 1
Stream _debounceAggregate()
in lib/src/rate_limit.dart
37 8 3
Stream _throttleTrailing()
in lib/src/rate_limit.dart
35 5 1
Stream transformByHandlers()
in lib/src/from_handlers.dart
35 4 2
Stream takeUntil()
in lib/src/take_until.dart
34 7 1
Stream audit()
in lib/src/rate_limit.dart
21 3 1
Stream concurrentAsyncMap()
in lib/src/async_map.dart
19 5 1
Stream asyncWhere()
in lib/src/where.dart
19 6 1
Stream _asyncMapThen()
in lib/src/async_map.dart
14 2 1
void main()
in example/main.dart
13 1 0
Stream scan()
in lib/src/scan.dart
12 2 3
Stream _throttle()
in lib/src/rate_limit.dart
11 2 1
void handleData()
in lib/src/combine_latest.dart
7 2 2
Stream asyncMapSample()
in lib/src/async_map.dart
6 1 1
Stream startWithStream()
in lib/src/concatenate.dart
6 3 1