angular / material2-docs-content
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 229 units with 1,267 lines of code in units (0.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (41 lines of code)
    • 227 very simple units (1,226 lines of code)
0% | 0% | 0% | 3% | 96%
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
ts0% | 0% | 0% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
docs-content/examples-source0% | 0% | 0% | 3% | 96%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
sortData()
in docs-content/examples-source/material/sort/sort-overview/sort-overview-example.ts
24 8 1
loadMore()
in docs-content/examples-source/material/tree/tree-loadmore/tree-loadmore-example.ts
17 6 2
toggleNode()
in docs-content/examples-source/material/tree/tree-dynamic/tree-dynamic-example.ts
26 5 2
sortData()
in docs-content/examples-source/material/sort/sort-harness/sort-harness-example.ts
12 5 1
onContainerClick()
in docs-content/examples-source/material/form-field/form-field-custom-control/form-field-custom-control-example.ts
11 4 0
ngOnInit()
in docs-content/examples-source/material/autocomplete/autocomplete-display/autocomplete-display-example.ts
7 3 0
handleTreeControl()
in docs-content/examples-source/material/tree/tree-dynamic/tree-dynamic-example.ts
11 3 1
getErrorMessage()
in docs-content/examples-source/material/form-field/form-field-error/form-field-error-example.ts
6 3 0
get empty()
in docs-content/examples-source/material/form-field/form-field-custom-control/form-field-custom-control-example.ts
6 3 0
function compare()
in docs-content/examples-source/material/sort/sort-overview/sort-overview-example.ts
3 3 3
get empty()
in docs-content/examples-source/material-experimental/mdc-form-field/mdc-form-field-custom-control/form-field-custom-control-example.ts
6 3 0
getParentNode()
in docs-content/examples-source/cdk/tree/cdk-tree-flat/cdk-tree-flat-example.ts
9 3 1
shouldRender()
in docs-content/examples-source/cdk/tree/cdk-tree-flat/cdk-tree-flat-example.ts
10 3 1
constructor()
in docs-content/examples-source/cdk/layout/breakpoint-observer-overview/breakpoint-observer-overview-example.ts
18 3 1
onSubmitName()
in docs-content/examples-source/cdk-experimental/popover-edit/cdk-popover-edit-cdk-table/cdk-popover-edit-cdk-table-example.ts
6 2 2
onSubmitWeight()
in docs-content/examples-source/cdk-experimental/popover-edit/cdk-popover-edit-cdk-table/cdk-popover-edit-cdk-table-example.ts
6 2 2
onSubmit()
in docs-content/examples-source/cdk-experimental/popover-edit/cdk-popover-edit-cell-span-vanilla-table/cdk-popover-edit-cell-span-vanilla-table-example.ts
8 2 2
onSubmitName()
in docs-content/examples-source/cdk-experimental/popover-edit/cdk-popover-edit-cdk-table-flex/cdk-popover-edit-cdk-table-flex-example.ts
6 2 2
onSubmitWeight()
in docs-content/examples-source/cdk-experimental/popover-edit/cdk-popover-edit-cdk-table-flex/cdk-popover-edit-cdk-table-flex-example.ts
6 2 2
onSubmitName()
in docs-content/examples-source/cdk-experimental/popover-edit/cdk-popover-edit-vanilla-table/cdk-popover-edit-vanilla-table-example.ts
6 2 2