dart-lang / typed_data
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 352 lines of code in units (49.9% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (57 lines of code)
    • 2 medium size units (65 lines of code)
    • 8 small units (114 lines of code)
    • 19 very small units (116 lines of code)
0% | 16% | 18% | 32% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 16% | 18% | 32% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 16% | 18% | 32% | 32%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void setRange()
in lib/src/typed_queue.dart
57 15 4
void insertAll()
in lib/src/typed_buffer.dart
44 14 4
void removeRange()
in lib/src/typed_queue.dart
21 4 2
set length()
in lib/src/typed_buffer.dart
18 5 1
int _writeToList()
in lib/src/typed_queue.dart
17 2 3
void insert()
in lib/src/typed_buffer.dart
17 3 2
void _insertKnownLength()
in lib/src/typed_buffer.dart
14 4 4
void _addAll()
in lib/src/typed_buffer.dart
13 6 3
set length()
in lib/src/typed_queue.dart
12 4 1
void _growAtCapacity()
in lib/src/typed_queue.dart
12 2 0
static void _reverse()
in lib/src/typed_buffer.dart
11 2 3
void fillRange()
in lib/src/typed_queue.dart
10 2 3
int _chooseRealInitialCapacity()
in lib/src/typed_queue.dart
9 4 1
int _nextPowerOf2()
in lib/src/typed_queue.dart
9 3 1
List _createBiggerBuffer()
in lib/src/typed_buffer.dart
9 4 1
void _growTo()
in lib/src/typed_queue.dart
8 1 1
L sublist()
in lib/src/typed_queue.dart
7 1 2
void addAll()
in lib/src/typed_buffer.dart
7 3 3
void _setRange()
in lib/src/typed_buffer.dart
7 2 4
E removeFirst()
in lib/src/typed_queue.dart
6 2 0