microsoft / CanvasTools-for-VOTT
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 608 units with 6,889 lines of code in units (76.9% of code).
    • 1 very complex units (109 lines of code)
    • 0 complex units (0 lines of code)
    • 10 medium complex units (622 lines of code)
    • 32 simple units (1,080 lines of code)
    • 565 very simple units (5,078 lines of code)
1% | 0% | 9% | 15% | 73%
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
ts1% | 0% | 9% | 15% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/canvastools/ts/CanvasTools/Region14% | 0% | 0% | 15% | 70%
src/canvastools/ts/CanvasTools/Region/Rect0% | 0% | 42% | 0% | 57%
src/canvastools/ts/CanvasTools/Region/Component0% | 0% | 23% | 10% | 65%
src/canvastools/ts/CanvasTools/Core/Colors0% | 0% | 18% | 12% | 69%
src/canvastools/ts/CanvasTools0% | 0% | 12% | 30% | 56%
src/canvastools/ts/CanvasTools/Selection0% | 0% | 26% | 0% | 73%
src/canvastools/ts/CanvasTools/Toolbar0% | 0% | 6% | 0% | 93%
src/canvastools/ts/CanvasTools/Selection/Selectors0% | 0% | 2% | 17% | 80%
src/canvastools/ts/CanvasTools/Region/Polygon0% | 0% | 0% | 34% | 65%
src/canvastools/ts/CanvasTools/Region/Path0% | 0% | 0% | 26% | 73%
src/canvastools/ts/CanvasTools/Region/Polyline0% | 0% | 0% | 25% | 74%
src/canvastools/ts/CanvasTools/Core0% | 0% | 0% | 10% | 89%
src/canvastools/ts/CanvasTools/Region/Point0% | 0% | 0% | 15% | 84%
src/canvastools/ts/CanvasTools/Core/Utils0% | 0% | 0% | 31% | 68%
src/canvastools/ts/CanvasTools/Selection/Component0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private subscribeToEvents()
in src/canvastools/ts/CanvasTools/Region/RegionsManager.ts
109 58 0
protected updateRegion()
in src/canvastools/ts/CanvasTools/Region/Rect/AnchorsElements.ts
96 25 1
private subscribeToKeyboardEvents()
in src/canvastools/ts/CanvasTools/Toolbar/Toolbar.ts
27 17 0
private zoomEditorToScale()
in src/canvastools/ts/CanvasTools/CanvasTools.Editor.ts
69 15 3
private onKeyDown()
in src/canvastools/ts/CanvasTools/Selection/Selectors/RectSelector.ts
23 15 1
public setSelectionMode()
in src/canvastools/ts/CanvasTools/Selection/AreaSelector.ts
42 14 1
public redraw()
in src/canvastools/ts/CanvasTools/Region/Rect/TagsElement.ts
110 13 1
constructor()
in src/canvastools/ts/CanvasTools/Core/Colors/Color.ts
35 12 1
public distanceTo_00()
in src/canvastools/ts/CanvasTools/Core/Colors/LABColor.ts
55 12 1
private subscribeControlGhostToEvents()
in src/canvastools/ts/CanvasTools/Region/Component/BezierController.ts
85 11 1
protected subscribeToDragEvents()
in src/canvastools/ts/CanvasTools/Region/Component/DragComponent.ts
80 11 0
protected onGhostPointerMove()
in src/canvastools/ts/CanvasTools/Region/Component/AnchorsComponent.ts
29 10 1
private onRegionChange()
in src/canvastools/ts/CanvasTools/Region/RegionsManager.ts
40 10 4
public addToolbar()
in src/canvastools/ts/CanvasTools/CanvasTools.Editor.ts
41 9 3
private updateMidpoints()
in src/canvastools/ts/CanvasTools/Region/Component/MidpointComponent.ts
43 9 2
protected onGhostPointerMove()
in src/canvastools/ts/CanvasTools/Region/Polyline/AnchorsElement.ts
31 9 1
private buildUIElements()
in src/canvastools/ts/CanvasTools/Selection/Selectors/PolygonSelector.ts
115 9 0
constructor()
in src/canvastools/ts/CanvasTools/Core/TagsDescriptor.ts
27 8 2
protected onGhostPointerMove()
in src/canvastools/ts/CanvasTools/Region/Path/AnchorsElement.ts
28 8 1
public redraw()
in src/canvastools/ts/CanvasTools/Region/Path/TagsElement.ts
64 8 1