angular / ngcc-validation
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 48 units with 386 lines of code in units (3.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (50 lines of code)
    • 0 simple units (0 lines of code)
    • 47 very simple units (336 lines of code)
0% | 0% | 12% | 0% | 87%
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% | 13% | 0% | 86%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
infra0% | 0% | 39% | 0% | 60%
projects/kendo-ui-notification-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-conversational-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-dialog-ngcc0% | 0% | 0% | 0% | 100%
projects/angularplatform-server-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-upload-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-layout-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-toolbar-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-popup-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-charts-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-intl-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-grid-ngcc0% | 0% | 0% | 0% | 100%
projects/bugsnagplugin-angular-ngcc0% | 0% | 0% | 0% | 100%
projects/kendo-ui-pdf-ngcc0% | 0% | 0% | 0% | 100%
projects/apollo-angular-link-http-ngcc0% | 0% | 0% | 0% | 100%
projects/apollo-angular-ngcc0% | 0% | 0% | 0% | 100%
projects/apollo-angular-link-http-batch-ngcc0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private _report()
in infra/build.ts
50 12 0
function guessTypingsFromPackageJson()
in infra/is-ngcc-necessary.ts
15 4 2
private _next()
in infra/build.ts
30 4 0
function runCmd()
in infra/build-project.js
12 3 2
export function outerWidth()
in projects/kendo-ui-toolbar-ngcc/src/app/custom-tool.component.ts
6 3 1
public togglePopup()
in projects/kendo-ui-popup-ngcc/src/app/app.component.ts
13 3 1
schedule()
in infra/build.ts
8 2 1
function sortKeys()
in infra/create-proj.ts
7 2 1
public showButton()
in projects/kendo-ui-upload-ngcc/src/app/app.component.ts
3 2 1
public get outerWidth()
in projects/kendo-ui-toolbar-ngcc/src/app/custom-tool.component.ts
5 2 0
export function app()
in projects/angularplatform-server-ngcc/server.ts
17 2 0
function run()
in projects/angularplatform-server-ngcc/server.ts
7 2 0
public openDialogForm()
in projects/kendo-ui-dialog-ngcc/src/app/app.component.ts
13 2 0
public openWindow()
in projects/kendo-ui-dialog-ngcc/src/app/app.component.ts
13 2 0
constructor()
in projects/kendo-ui-charts-ngcc/src/app/app.component.ts
9 2 0
4 1 1
constructor()
in projects/kendo-ui-conversational-ngcc/src/app/app.component.ts
26 1 1
public sendMessage()
in projects/kendo-ui-conversational-ngcc/src/app/app.component.ts
8 1 1
public submit()
in projects/kendo-ui-conversational-ngcc/src/app/chat.service.ts
8 1 1
public remove()
in projects/kendo-ui-upload-ngcc/src/app/app.component.ts
3 1 2