microsoft / azure-devops-node-api
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 1,240 units with 39,225 lines of code in units (59.6% of code).
    • 0 very long units (0 lines of code)
    • 23 long units (1,376 lines of code)
    • 1,100 medium size units (37,092 lines of code)
    • 23 small units (345 lines of code)
    • 94 very small units (412 lines of code)
0% | 3% | 94% | <1% | 1%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 3% | 95% | <1% | <1%
js0% | 20% | 30% | 34% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
api0% | 3% | 95% | <1% | <1%
api/opensource/node-http-ntlm0% | 29% | 45% | 20% | 4%
ROOT0% | 0% | 0% | 63% | 36%
api/handlers0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function _getTranslatedField()
in api/Serialization.ts
88 25 4
function createType3Message()
in api/opensource/node-http-ntlm/ntlm.js
75 4 2
public async getReleases()
in api/ReleaseApi.ts
73 5 22
public async getBuilds()
in api/BuildApi.ts
71 7 21
public async getItem()
in api/FileContainerApi.ts
70 11 4
69 11 17
private replaceRouteValues()
in api/VsoClient.ts
65 17 2
63 3 17
public async getDeployments()
in api/ReleaseApi.ts
61 2 16
59 5 15
constructor()
in api/WebApi.ts
57 14 4
public async getItem()
in api/GitApi.ts
56 3 12
public async getDeploymentTargets()
in api/TaskAgentApiBase.ts
53 4 12
53 4 9
53 4 9
public async readReportingRevisionsGet()
in api/WorkItemTrackingApi.ts
53 4 12
public async getItems()
in api/FileContainerApiBase.ts
51 2 11
51 4 7
51 3 12
51 3 12