dart-lang / collection
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 222 units with 1,848 lines of code in units (54.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (57 lines of code)
    • 17 medium size units (447 lines of code)
    • 37 small units (541 lines of code)
    • 167 very small units (803 lines of code)
0% | 3% | 24% | 29% | 43%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 3% | 24% | 29% | 43%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 3% | 24% | 29% | 42%
lib/src/combined_wrappers0% | 0% | 0% | 31% | 68%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
int _compareNumerically()
in lib/src/comparators.dart
57 21 5
void _merge()
in lib/src/algorithms.dart
42 5 1
void _quickSort()
in lib/src/algorithms.dart
41 6 2
void _bubbleDown()
in lib/src/priority_queue.dart
36 6 2
void _movingInsertionSort()
in lib/src/algorithms.dart
28 5 2
void addAll()
in lib/src/queue_list.dart
27 5 1
set length()
in lib/src/queue_list.dart
25 7 1
void fillRange()
in lib/src/boollist.dart
25 4 3
void strongConnect()
in lib/src/functions.dart
25 6 1
int _locate()
in lib/src/priority_queue.dart
24 9 1
int compareAsciiLowerCaseNatural()
in lib/src/comparators.dart
23 11 2
int compareAsciiUpperCaseNatural()
in lib/src/comparators.dart
23 11 2
void _mergeSort()
in lib/src/algorithms.dart
23 2 2
int compareAsciiUpperCase()
in lib/src/comparators.dart
21 11 2
int compareAsciiLowerCase()
in lib/src/comparators.dart
21 11 2
void insertionSort()
in lib/src/algorithms.dart
21 4 3
void mergeSort()
in lib/src/algorithms.dart
21 3 5
bool equals()
in lib/src/equality.dart
21 8 2
int binarySearchBy()
in lib/src/algorithms.dart
20 4 2
void mergeSortBy()
in lib/src/algorithms.dart
20 3 2