dart-lang / http_io
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 258 units with 3,768 lines of code in units (68.2% of code).
    • 4 very long units (699 lines of code)
    • 11 long units (760 lines of code)
    • 26 medium size units (851 lines of code)
    • 35 small units (519 lines of code)
    • 182 very small units (939 lines of code)
18% | 20% | 22% | 13% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
dart18% | 20% | 22% | 13% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/src18% | 20% | 22% | 13% | 23%
lib0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void _doParse()
in lib/src/http_parser.dart
350 115 0
static DateTime parse()
in lib/src/http_date.dart
129 16 1
DateTime parseCookieDate()
in lib/src/http_headers_impl.dart
116 65 1
void _parse()
in lib/src/http_headers_impl.dart
104 37 4
_HttpClientRequest send()
in lib/src/http_impl.dart
97 27 4
String _findReasonPhrase()
in lib/src/http_impl.dart
89 42 1
Future _authenticate()
in lib/src/http_impl.dart
87 21 1
void _parseSetCookieValue()
in lib/src/http_headers_impl.dart
70 23 1
Future addStream()
in lib/src/http_impl.dart
66 14 1
Future close()
in lib/src/http_impl.dart
64 16 0
Future connect()
in lib/src/http_impl.dart
64 10 4
List parseCookies()
in lib/src/http_headers_impl.dart
62 22 0
58 20 2
String authorization()
in lib/src/http_impl.dart
52 3 2
bool _headersEnd()
in lib/src/http_parser.dart
51 13 0
void _add()
in lib/src/http_headers_impl.dart
49 15 2
void _writeHeader()
in lib/src/http_impl.dart
45 8 0
Future writeHeaders()
in lib/src/http_impl.dart
45 17 2
static String bytesToBase64()
in lib/src/crypto.dart
45 11 3
static List base64StringToBytes()
in lib/src/crypto.dart
45 15 2