dart-lang / crypto
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 33 units with 446 lines of code in units (38.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 7 medium size units (260 lines of code)
    • 3 small units (39 lines of code)
    • 23 very small units (147 lines of code)
0% | 0% | 58% | 8% | 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% | 0% | 58% | 8% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src0% | 0% | 55% | 9% | 35%
example0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void updateHash()
in lib/src/sha512_slowsinks.dart
47 4 1
void updateHash()
in lib/src/sha1.dart
40 6 1
void updateHash()
in lib/src/sha512_fastsinks.dart
40 4 1
void updateHash()
in lib/src/sha256.dart
39 4 1
void updateHash()
in lib/src/md5.dart
36 5 1
Future main()
in example/example.dart
32 6 1
void _finalizeData()
in lib/src/hash_sink.dart
26 4 0
void _shr()
in lib/src/sha512_slowsinks.dart
13 5 5
void _shl()
in lib/src/sha512_slowsinks.dart
13 5 5
void _iterate()
in lib/src/hash_sink.dart
13 3 0
String _hexEncode()
in lib/src/digest.dart
10 2 1
Uint8List _byteDigest()
in lib/src/hash_sink.dart
10 3 0
void close()
in lib/src/hash_sink.dart
9 2 0
Digest convert()
in lib/src/hmac.dart
7 1 1
void close()
in lib/src/hmac.dart
7 2 0
void _add()
in lib/src/sha512_slowsinks.dart
7 2 6
void _addTo2()
in lib/src/sha512_slowsinks.dart
7 2 4
void _bsig0()
in lib/src/sha512_slowsinks.dart
7 1 4
void _bsig1()
in lib/src/sha512_slowsinks.dart
7 1 4
void _ssig0()
in lib/src/sha512_slowsinks.dart
7 1 4