dart-lang / characters
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 94 units with 1,105 lines of code in units (61.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (120 lines of code)
    • 15 simple units (331 lines of code)
    • 76 very simple units (654 lines of code)
0% | 0% | 10% | 29% | 59%
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% | 10% | 29% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/src/grapheme_clusters0% | 0% | 49% | 40% | 10%
lib/src0% | 0% | 0% | 30% | 69%
benchmark0% | 0% | 0% | 0% | 100%
example0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int nextBreak()
in lib/src/grapheme_clusters/breaks.dart
44 15 4
int nextBreak()
in lib/src/grapheme_clusters/breaks.dart
31 11 0
bool isGraphemeClusterBoundary()
in lib/src/grapheme_clusters/breaks.dart
45 11 4
bool _advanceEnd()
in lib/src/characters_impl.dart
33 10 2
Iterable split()
in lib/src/characters_impl.dart
28 9 2
Iterable split()
in lib/src/characters_impl.dart
30 9 2
int _lastIndexOf()
in lib/src/characters_impl.dart
21 9 4
int nextBreak()
in lib/src/grapheme_clusters/breaks.dart
28 8 0
int previousBreak()
in lib/src/grapheme_clusters/breaks.dart
30 8 4
int _indexOf()
in lib/src/characters_impl.dart
21 8 4
int lookAheadPictorgraphicExtend()
in lib/src/grapheme_clusters/breaks.dart
21 7 3
Characters getRange()
in lib/src/characters_impl.dart
13 7 2
int lookAheadRegional()
in lib/src/grapheme_clusters/breaks.dart
19 6 3
Characters characterAt()
in lib/src/characters_impl.dart
13 6 1
Characters skipWhile()
in lib/src/characters_impl.dart
17 6 1
Characters skipLast()
in lib/src/characters_impl.dart
19 6 1
Characters skipLastWhile()
in lib/src/characters_impl.dart
17 6 1
Characters takeLast()
in lib/src/characters_impl.dart
21 6 1
int _skipIndices()
in lib/src/characters_impl.dart
10 5 3
Characters takeWhile()
in lib/src/characters_impl.dart
15 5 1