dart-lang / co19
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 6,623 units with 34,276 lines of code in units (12.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (381 lines of code)
    • 100 simple units (2,446 lines of code)
    • 6,515 very simple units (31,449 lines of code)
0% | 0% | 1% | 7% | 91%
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% | 1% | 7% | 91%
py0% | 0% | 32% | 12% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Utils0% | 0% | 44% | 7% | 47%
Language/Statements0% | 0% | 2% | 49% | 48%
LanguageFeatures/Subtyping0% | 0% | 26% | 13% | 60%
ROOT0% | 0% | 32% | 12% | 55%
LibTest/io0% | 0% | 0% | 7% | 92%
LibTest/ffi0% | 0% | 0% | 4% | 95%
Language/Expressions0% | 0% | 0% | 4% | 95%
LanguageFeatures/nnbd0% | 0% | 0% | 1% | 98%
LibTest/typed_data0% | 0% | 0% | <1% | 99%
LibTest/async0% | 0% | 0% | 2% | 97%
LibTest/isolate0% | 0% | 0% | 1% | 98%
LanguageFeatures/FinalizationRegistry0% | 0% | 0% | 100% | 0%
LibTest/collection0% | 0% | 0% | <1% | 99%
LibTest/core0% | 0% | 0% | 0% | 100%
LanguageFeatures/Constructor-tear-offs0% | 0% | 0% | 0% | 100%
LanguageFeatures/Super-mixins0% | 0% | 0% | 0% | 100%
LibTest/html0% | 0% | 0% | 0% | 100%
LanguageFeatures/Instantiate-to-bound0% | 0% | 0% | 0% | 100%
Language/Classes0% | 0% | 0% | 0% | 100%
Language/Functions0% | 0% | 0% | 0% | 100%
LanguageFeatures/Extension-methods0% | 0% | 0% | 0% | 100%
Language/Types0% | 0% | 0% | 0% | 100%
Language/Reference0% | 0% | 0% | 0% | 100%
LibTest/convert0% | 0% | 0% | 0% | 100%
LanguageFeatures/Spread-collections0% | 0% | 0% | 0% | 100%
LibTest/math0% | 0% | 0% | 0% | 100%
LanguageFeatures/int-to-double0% | 0% | 0% | 0% | 100%
LanguageFeatures/Generic-functions-as-type-args0% | 0% | 0% | 0% | 100%
Language/Generics0% | 0% | 0% | 0% | 100%
LanguageFeatures/Set-literals0% | 0% | 0% | 0% | 100%
LanguageFeatures/Simple-bounds0% | 0% | 0% | 0% | 100%
Language/Interfaces0% | 0% | 0% | 0% | 100%
Language/Libraries_and_Scripts0% | 0% | 0% | 0% | 100%
LanguageFeatures/Enhanced-Enum0% | 0% | 0% | 0% | 100%
LanguageFeatures/Abstract-external-fields0% | 0% | 0% | 0% | 100%
Language/Errors_and_Warnings0% | 0% | 0% | 0% | 100%
Language/Overview0% | 0% | 0% | 0% | 100%
Language/Mixins0% | 0% | 0% | 0% | 100%
LibTest/mirrors0% | 0% | 0% | 0% | 100%
Language/Metadata0% | 0% | 0% | 0% | 100%
LanguageFeatures/Named-arguments-anywhere0% | 0% | 0% | 0% | 100%
Language/Variables0% | 0% | 0% | 0% | 100%
LanguageFeatures/regression0% | 0% | 0% | 0% | 100%
LanguageFeatures/Super-parameters0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static void stringEquals()
in Utils/expect_common.dart
47 14 3
def ListTests()
in testcfg.py
31 14 5
static void deepEquals()
in Utils/expect_common.dart
53 13 3
void generateTests()
in LanguageFeatures/Subtyping/generator/generator.dart
65 12 5
Future main()
in Utils/status_files_checker.dart
61 12 1
static Options read()
in Utils/status_files_checker.dart
50 12 1
Future test6()
in Language/Statements/Continue/async_loops_t10.dart
38 12 0
Future test5()
in Language/Statements/Break/async_loops_t10.dart
36 12 0
void toCheck()
in LibTest/io/RawDatagramSocket/asyncMap_A01_t03.dart
27 9 2
Future test2()
in Language/Statements/Continue/async_loops_t07.dart
38 9 0
Future test3()
in Language/Statements/Continue/async_loops_t07.dart
30 9 0
Future test2()
in Language/Statements/Continue/async_loops_t05.dart
30 9 0
Future test3()
in Language/Statements/Continue/async_loops_t05.dart
31 9 0
Future test2()
in Language/Statements/Continue/async_loops_t03.dart
32 9 0
Future test3()
in Language/Statements/Continue/async_loops_t03.dart
31 9 0
Future test2()
in Language/Statements/Continue/async_loops_t09.dart
32 9 0
Future test3()
in Language/Statements/Continue/async_loops_t09.dart
30 9 0
Future test3()
in Language/Statements/Break/async_loops_t01.dart
22 9 0
Future test2()
in Language/Statements/Break/async_loops_t07.dart
29 9 0
Future test3()
in Language/Statements/Break/async_loops_t07.dart
30 9 0