microsoft / code-push-vsts-extension
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 33 units with 407 lines of code in units (61.2% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (54 lines of code)
    • 3 medium size units (103 lines of code)
    • 10 small units (135 lines of code)
    • 19 very small units (115 lines of code)
0% | 13% | 25% | 33% | 28%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 13% | 25% | 33% | 28%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Tasks/codepush-release-cordova0% | 30% | 0% | 38% | 31%
Tasks/codepush-patch0% | 0% | 100% | 0% | 0%
Tasks/codepush-release0% | 0% | 22% | 42% | 35%
Tasks/codepush-promote0% | 0% | 86% | 0% | 13%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function performDeployTask()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
54 19 10
function performPatchTask()
in Tasks/codepush-patch/codepush-patch.js
37 20 9
function performDeployTask()
in Tasks/codepush-release/codepush-release.js
35 13 9
function performPromoteTask()
in Tasks/codepush-promote/codepush-promote.js
31 17 9
function buildCommand()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
17 6 3
function performDeployTask()
in Tasks/codepush-release-cordova/test.js
17 4 1
function performDeployTask()
in Tasks/codepush-release/test.js
17 4 1
function buildCommand()
in Tasks/codepush-release/codepush-release.js
16 6 3
function executeCommandAndHandleResult()
in Tasks/codepush-release-cordova/codepush-release-cordova.js
12 2 3
function executeCommandAndHandleResult()
in Tasks/codepush-release/codepush-release.js
12 2 3
it()
in Tasks/codepush-release-cordova/test.js
11 1 2
it()
in Tasks/codepush-release-cordova/test.js
11 1 2
it()
in Tasks/codepush-release/test.js
11 1 2
it()
in Tasks/codepush-release/test.js
11 1 2
function stubExecToFailOnCommandType()
in Tasks/codepush-release-cordova/test.js
10 3 1
it()
in Tasks/codepush-release-cordova/test.js
10 1 2
it()
in Tasks/codepush-release-cordova/test.js
10 1 2
function stubExecToFailOnCommandType()
in Tasks/codepush-release/test.js
10 3 1
it()
in Tasks/codepush-release/test.js
10 1 2
it()
in Tasks/codepush-release/test.js
10 1 2