dart-lang / fixnum
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 32 units with 492 lines of code in units (42.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (89 lines of code)
    • 4 medium size units (116 lines of code)
    • 15 small units (207 lines of code)
    • 12 very small units (80 lines of code)
0% | 18% | 23% | 42% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart0% | 18% | 23% | 42% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 18% | 23% | 42% | 16%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
static Int64 _divideHelper()
in lib/src/int64.dart
89 22 9
39 7 5
static Int64 _parseRadix()
in lib/src/int64.dart
29 7 2
Int64 shiftRightUnsigned()
in lib/src/int64.dart
24 5 1
int _compareTo()
in lib/src/int64.dart
24 9 1
String _toRadixString()
in lib/src/int64.dart
18 2 1
static Int64 _divide()
in lib/src/int64.dart
18 3 3
factory Int64()
in lib/src/int64.dart
16 3 1
Int64 toSigned()
in lib/src/int64.dart
16 6 1
int numberOfTrailingZeros()
in lib/src/int64.dart
15 4 0
Int32 shiftRightUnsigned()
in lib/src/int32.dart
15 4 1
int numberOfLeadingZeros()
in lib/src/int64.dart
13 3 0
Int64 toUnsigned()
in lib/src/int64.dart
13 4 1
int toInt()
in lib/src/int64.dart
13 2 0
static Int32 parseRadix()
in lib/src/int32.dart
13 3 2
List toBytes()
in lib/src/int64.dart
12 1 0
Int32 clamp()
in lib/src/int32.dart
12 7 2
String toHexString()
in lib/src/int64.dart
11 3 0
static int _shiftRight()
in lib/src/int64.dart
11 3 2
static int _decodeDigit()
in lib/src/int32.dart
11 7 1