angular / ngcc-validation
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 48 units with 386 lines of code in units (3.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (106 lines of code)
    • 6 small units (83 lines of code)
    • 39 very small units (197 lines of code)
0% | 0% | 27% | 21% | 51%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 28% | 18% | 52%
js0% | 0% | 0% | 100% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
infra0% | 0% | 63% | 21% | 15%
projects/kendo-ui-conversational-ngcc0% | 0% | 61% | 0% | 38%
projects/kendo-ui-dialog-ngcc0% | 0% | 0% | 68% | 31%
projects/angularplatform-server-ngcc0% | 0% | 0% | 70% | 29%
projects/kendo-ui-popup-ngcc0% | 0% | 0% | 100% | 0%
projects/kendo-ui-notification-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-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%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private _report()
in infra/build.ts
50 12 0
private _next()
in infra/build.ts
30 4 0
constructor()
in projects/kendo-ui-conversational-ngcc/src/app/app.component.ts
26 1 1
export function app()
in projects/angularplatform-server-ngcc/server.ts
17 2 0
function guessTypingsFromPackageJson()
in infra/is-ngcc-necessary.ts
15 4 2
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
public togglePopup()
in projects/kendo-ui-popup-ngcc/src/app/app.component.ts
13 3 1
function runCmd()
in infra/build-project.js
12 3 2
public show()
in projects/kendo-ui-notification-ngcc/src/app/app.component.ts
10 1 0
public showDefault()
in projects/kendo-ui-notification-ngcc/src/app/app.component.ts
9 1 0
public showSuccess()
in projects/kendo-ui-notification-ngcc/src/app/app.component.ts
9 1 0
public showWarning()
in projects/kendo-ui-notification-ngcc/src/app/app.component.ts
9 1 0
public showInfo()
in projects/kendo-ui-notification-ngcc/src/app/app.component.ts
9 1 0
public showError()
in projects/kendo-ui-notification-ngcc/src/app/app.component.ts
9 1 0
constructor()
in projects/kendo-ui-charts-ngcc/src/app/app.component.ts
9 2 0
schedule()
in infra/build.ts
8 2 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
function sortKeys()
in infra/create-proj.ts
7 2 1