microsoft / google-play-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 116 units with 2,281 lines of code in units (83.8% of code).
    • 1 very long units (146 lines of code)
    • 8 long units (530 lines of code)
    • 25 medium size units (754 lines of code)
    • 31 small units (521 lines of code)
    • 51 very small units (330 lines of code)
6% | 23% | 33% | 22% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts11% | 25% | 24% | 24% | 14%
js0% | 20% | 44% | 20% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Tasks/GooglePlayReleaseV470% | 29% | 0% | 0% | 0%
ROOT0% | 20% | 44% | 20% | 14%
Tasks/GooglePlayReleaseV4/modules0% | 11% | 35% | 37% | 15%
Tasks/GooglePlayPromoteV20% | 41% | 18% | 22% | 17%
Tasks/GooglePlayStatusUpdateV20% | 55% | 20% | 0% | 24%
Tasks/GooglePlayRolloutUpdateV30% | 36% | 18% | 25% | 19%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
async function run()
in Tasks/GooglePlayReleaseV4/main.ts
146 30 0
91 19 0
function getImageList()
in Tasks/GooglePlayReleaseV4/modules/metadataHelper.ts
76 21 1
async function run()
in Tasks/GooglePlayPromoteV2/google-play-promote.ts
71 13 0
async function run()
in Tasks/GooglePlayStatusUpdateV2/google-play-status-update.ts
69 15 0
async function prepareTrackUpdate()
in Tasks/GooglePlayReleaseV4/main.ts
60 8 10
56 14 2
async function run()
in Tasks/GooglePlayRolloutUpdateV3/google-play-rollout-update.ts
55 9 0
52 15 1
49 6 1
47 7 0
export async function updateTrack()
in Tasks/GooglePlayReleaseV4/modules/googleutil.ts
43 7 8
40 12 2
async function addLanguageListing()
in Tasks/GooglePlayReleaseV4/modules/metadataHelper.ts
33 9 3
33 9 2
33 9 4
export async function updateTrack()
in Tasks/GooglePlayPromoteV2/googleutil.ts
32 6 6
32 8 3
31 8 1
29 7 3