flutter / flutter-intellij
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 4,625 units with 44,331 lines of code in units (64.3% of code).
    • 0 very complex units (0 lines of code)
    • 8 complex units (903 lines of code)
    • 98 medium complex units (5,109 lines of code)
    • 293 simple units (7,678 lines of code)
    • 4,226 very simple units (30,641 lines of code)
0% | 2% | 11% | 17% | 69%
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
java0% | 2% | 11% | 17% | 69%
dart0% | 0% | 24% | 10% | 65%
kt0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
flutter-idea/src0% | 2% | 12% | 18% | 66%
tool/plugin0% | 0% | 25% | 9% | 64%
flutter-studio/src0% | 0% | 3% | 26% | 70%
flutter-idea/testSrc0% | 0% | 0% | 5% | 94%
flutter-idea/testData0% | 0% | 0% | 100% | 0%
tool0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void paint()
in flutter-idea/src/io/flutter/editor/WidgetIndentsHighlightingPass.java
183 45 3
LineMarkerInfo getLineMarkerInfo()
in flutter-idea/src/io/flutter/editor/FlutterIconLineMarkerProvider.java
113 41 2
public static Icon getIcon()
in flutter-idea/src/io/flutter/preview/DartElementPresentationUtil.java
55 40 1
public void customizeCellRenderer()
in flutter-idea/src/io/flutter/view/DiagnosticsTreeCellRenderer.java
138 38 7
protected int doPaintTextAndIcons()
in flutter-idea/src/io/flutter/view/MultiIconSimpleColoredComponent.java
134 38 2
private boolean setParsedPropertyValueHelper()
in flutter-idea/src/io/flutter/editor/PropertyEditorPanel.java
94 36 2
public void received()
in flutter-idea/src/io/flutter/vmService/DartVmServiceListener.java
67 28 2
protected void rebuildUi()
in flutter-idea/src/io/flutter/editor/PropertyEditorPanel.java
119 26 0
public CompletableFuture updateMouse()
in flutter-idea/src/io/flutter/editor/PreviewViewControllerBase.java
66 25 1
Future doit()
in tool/plugin/lib/plugin.dart
69 25 0
public Result applyFilter()
in flutter-idea/src/io/flutter/console/FlutterConsoleFilter.java
94 23 2
private void printDiagnosticsNodeProperty()
in flutter-idea/src/io/flutter/logging/FlutterConsoleLogManager.java
52 21 5
public boolean submit()
in flutter-idea/src/io/flutter/FlutterErrorReportSubmitter.java
128 21 4
protected void installKeyboardActions()
in flutter-idea/src/io/flutter/view/InspectorTreeUI.java
70 21 0
protected void paintVerticalPartOfLeg()
in flutter-idea/src/io/flutter/view/InspectorTreeUI.java
75 21 4
public boolean isModified()
in flutter-idea/src/io/flutter/sdk/FlutterSettingsConfigurable.java
61 20 0
private void doSetBreakpointsForIsolate()
in flutter-idea/src/io/flutter/vmService/VmServiceWrapper.java
89 20 3
public Icon getIcon()
in flutter-idea/src/io/flutter/project/FlutterIconProvider.java
29 19 2
public void computeScreenshotBounds()
in flutter-idea/src/io/flutter/editor/InlinePreviewViewController.java
97 19 0
public void appendOutput()
in flutter-idea/src/io/flutter/utils/StdoutJsonParser.java
42 19 1