dart-lang / sse
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 17 units with 167 lines of code in units (40.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (36 lines of code)
    • 15 very simple units (131 lines of code)
0% | 0% | 0% | 21% | 78%
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% | 0% | 21% | 78%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src/server0% | 0% | 0% | 37% | 62%
lib/client0% | 0% | 0% | 0% | 100%
example0% | 0% | 0% | 0% | 100%
lib/src/util0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 17 most complex units
Unit# linesMcCabe index# params
Future _setUpListener()
in lib/src/server/sse_handler.dart
23 10 0
Future _handle()
in lib/src/server/sse_handler.dart
13 6 1
void _onOutgoingMessage()
in lib/client/sse_client.dart
19 4 1
void _handleDisconnect()
in lib/src/server/sse_handler.dart
7 4 0
void _close()
in lib/src/server/sse_handler.dart
12 4 0
void _addIncomingMessage()
in lib/src/server/sse_handler.dart
13 3 2
void close()
in lib/client/sse_client.dart
6 2 0
void _onIncomingControlMessage()
in lib/client/sse_client.dart
8 2 1
Future _handleIncomingMessage()
in lib/src/server/sse_handler.dart
16 2 2
void shutdown()
in lib/src/server/sse_handler.dart
5 2 0
void main()
in example/server.dart
10 2 0
void _onIncomingMessage()
in lib/client/sse_client.dart
5 1 1
void _onOutgoingDone()
in lib/client/sse_client.dart
3 1 0
void _acceptReconnection()
in lib/src/server/sse_handler.dart
4 1 1
void shutdown()
in lib/src/server/sse_handler.dart
3 1 0
String generateUuidV4()
in lib/src/util/uuid.dart
14 1 0
void main()
in example/index.dart
6 1 0