dart-lang / typed_data
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 30 units with 352 lines of code in units (49.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (101 lines of code)
    • 1 simple units (13 lines of code)
    • 27 very simple units (238 lines of code)
0% | 0% | 28% | 3% | 67%
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% | 28% | 3% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src0% | 0% | 28% | 3% | 67%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void setRange()
in lib/src/typed_queue.dart
57 15 4
void insertAll()
in lib/src/typed_buffer.dart
44 14 4
void _addAll()
in lib/src/typed_buffer.dart
13 6 3
set length()
in lib/src/typed_buffer.dart
18 5 1
set length()
in lib/src/typed_queue.dart
12 4 1
void removeRange()
in lib/src/typed_queue.dart
21 4 2
int _chooseRealInitialCapacity()
in lib/src/typed_queue.dart
9 4 1
void _insertKnownLength()
in lib/src/typed_buffer.dart
14 4 4
List _createBiggerBuffer()
in lib/src/typed_buffer.dart
9 4 1
int _nextPowerOf2()
in lib/src/typed_queue.dart
9 3 1
void addAll()
in lib/src/typed_buffer.dart
7 3 3
void insert()
in lib/src/typed_buffer.dart
17 3 2
List toList()
in lib/src/typed_queue.dart
5 2 1
QueueList cast()
in lib/src/typed_queue.dart
4 2 0
void addLast()
in lib/src/typed_queue.dart
5 2 1
void addFirst()
in lib/src/typed_queue.dart
5 2 1
E removeFirst()
in lib/src/typed_queue.dart
6 2 0
E removeLast()
in lib/src/typed_queue.dart
5 2 0
void fillRange()
in lib/src/typed_queue.dart
10 2 3
int _writeToList()
in lib/src/typed_queue.dart
17 2 3