microsoft / code-push
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 87 units with 865 lines of code in units (69.7% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (58 lines of code)
    • 8 medium size units (237 lines of code)
    • 15 small units (214 lines of code)
    • 63 very small units (356 lines of code)
0% | 6% | 27% | 24% | 41%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 6% | 27% | 24% | 41%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
script0% | 12% | 28% | 15% | 42%
utils/adapter0% | 0% | 20% | 43% | 36%
utils0% | 0% | 48% | 0% | 51%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public queryUpdateWithCurrentPackage()
in src/script/acquisition-sdk.ts
58 11 2
public reportStatusDeploy()
in src/script/acquisition-sdk.ts
49 13 5
private makeApiRequest()
in src/utils/request-manager.ts
39 10 5
private packageFileFromPath()
in src/script/management-sdk.ts
38 4 1
public toApigatewayAppCreationRequest()
in src/utils/adapter/adapter.ts
23 9 1
private toLegacyRestApp()
in src/utils/adapter/adapter.ts
23 3 3
public async release()
in src/script/management-sdk.ts
22 2 6
public async toLegacyApps()
in src/utils/adapter/adapter.ts
22 4 1
public reportStatusDownload()
in src/script/acquisition-sdk.ts
21 4 2
public releaseToPackage()
in src/utils/adapter/adapter.ts
20 11 1
public toLegacyAccessKeyList()
in src/utils/adapter/adapter.ts
19 3 1
function queryStringify()
in src/script/acquisition-sdk.ts
18 6 1
public async getRenamedApp()
in src/utils/adapter/adapter.ts
17 4 3
public async addApp()
in src/script/management-sdk.ts
15 3 4
public async isAuthenticated()
in src/script/management-sdk.ts
14 6 1
public async toLegacyCollaborators()
in src/utils/adapter/adapter.ts
14 2 2
public async toLegacyDeploymentMetrics()
in src/utils/adapter/adapter.ts
14 1 1
public async parseApiAppName()
in src/utils/adapter/adapter.ts
14 2 1
public toReleaseUploadProperties()
in src/utils/adapter/adapter.ts
13 5 3
public toRestReleaseModification()
in src/utils/adapter/adapter.ts
12 7 1