dart-lang / http_parser
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 24 units with 367 lines of code in units (56.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (60 lines of code)
    • 2 simple units (67 lines of code)
    • 21 very simple units (240 lines of code)
0% | 0% | 16% | 18% | 65%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
dart0% | 0% | 16% | 18% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src/chunked_coding0% | 0% | 48% | 0% | 51%
lib/src0% | 0% | 0% | 28% | 71%
example0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
Uint8List _decode()
in lib/src/chunked_coding/decoder.dart
60 15 3
static List parseHeader()
in lib/src/authentication_challenge.dart
37 7 1
MediaType change()
in lib/src/media_type.dart
30 6 5
List parseList()
in lib/src/scan.dart
15 5 2
int _digitForByte()
in lib/src/chunked_coding/decoder.dart
14 5 2
List _convert()
in lib/src/chunked_coding/encoder.dart
19 5 4
String formatHttpDate()
in lib/src/http_date.dart
20 5 1
DateTime parseHttpDate()
in lib/src/http_date.dart
41 4 1
DateTime _parseTime()
in lib/src/http_date.dart
11 4 1
void addSlice()
in lib/src/chunked_coding/decoder.dart
6 3 4
static String _scanScheme()
in lib/src/authentication_challenge.dart
9 3 2
T wrapFormatException()
in lib/src/utils.dart
11 3 3
String toString()
in lib/src/media_type.dart
19 2 0
List convert()
in lib/src/chunked_coding/decoder.dart
6 2 1
void _close()
in lib/src/chunked_coding/decoder.dart
6 2 2
void addSlice()
in lib/src/chunked_coding/encoder.dart
5 2 4
static void _scanAuthParam()
in lib/src/authentication_challenge.dart
14 2 2
int _parseInt()
in lib/src/http_date.dart
7 2 2
DateTime _makeDateTime()
in lib/src/http_date.dart
8 2 4
String expectQuotedString()
in lib/src/scan.dart
10 1 3