flutter / tools_metadata
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 33 units with 530 lines of code in units (5.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (70 lines of code)
    • 2 simple units (76 lines of code)
    • 30 very simple units (384 lines of code)
0% | 0% | 13% | 14% | 72%
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% | 13% | 14% | 72%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tool/catalog0% | 0% | 50% | 30% | 20%
tool/colors0% | 0% | 0% | 30% | 69%
tool/icon_generator/lib0% | 0% | 0% | 0% | 100%
tool/icons0% | 0% | 0% | 0% | 100%
tool0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
Future main()
in tool/catalog/generate_widget_catalog.dart
70 11 1
void writeColors()
in tool/colors/generate_files.dart
34 9 3
Map _convertToJson()
in tool/catalog/generate_widget_catalog.dart
42 6 2
Future main()
in tool/icon_generator/lib/main.dart
27 4 0
String _singleLine()
in tool/catalog/generate_widget_catalog.dart
15 4 1
Future generateIcons()
in tool/icons/update_icons.dart
26 4 1
void generateProperties()
in tool/icons/update_icons.dart
18 3 3
Future _captureImage()
in tool/icon_generator/lib/main.dart
10 2 1
List _getAnnotations()
in tool/catalog/generate_widget_catalog.dart
9 2 2
String _getFlutterSdkPath()
in tool/common.dart
7 2 0
10 2 0
Future flutterRun()
in tool/common.dart
16 2 1
Future main()
in tool/colors/update_colors.dart
8 2 1
Future main()
in tool/colors/generate_files.dart
11 2 1
void generateDart()
in tool/icons/update_icons.dart
21 2 4
Future version()
in tool/grind.dart
17 2 0
Widget build()
in tool/icon_generator/lib/main.dart
68 1 1
Future findAndSave()
in tool/icon_generator/lib/main.dart
10 1 3
void fail()
in tool/catalog/generate_widget_catalog.dart
4 1 1
Future generateDartFiles()
in tool/colors/update_colors.dart
14 1 0