microsoft / app-store-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 68 units with 1,814 lines of code in units (86.2% of code).
    • 3 very long units (592 lines of code)
    • 4 long units (255 lines of code)
    • 17 medium size units (555 lines of code)
    • 15 small units (242 lines of code)
    • 29 very small units (170 lines of code)
32% | 14% | 30% | 13% | 9%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts69% | 6% | 13% | 5% | 5%
js0% | 20% | 45% | 20% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Tasks/AppStoreRelease92% | 0% | 0% | 5% | 2%
Tasks/AppStorePromote99% | 0% | 0% | 0% | <1%
Tasks/IpaResign40% | 14% | 29% | 7% | 8%
ROOT0% | 20% | 45% | 20% | 13%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
async function run()
in Tasks/AppStoreRelease/app-store-release.ts
273 57 0
async function run()
in Tasks/AppStorePromote/app-store-promote.ts
161 29 0
async function run()
in Tasks/IpaResign/ipa-resign.ts
158 32 0
91 19 0
export async function installCertInTemporaryKeychain()
in Tasks/IpaResign/ios-signing-common.ts
56 10 4
56 14 2
52 15 1
export async function getProvisioningProfileType()
in Tasks/IpaResign/ios-signing-common.ts
49 10 1
49 6 1
47 7 0
export async function getProvisioningProfileUUID()
in Tasks/IpaResign/ios-signing-common.ts
45 6 1
40 12 2
33 9 2
33 9 4
32 8 3
31 8 1
29 7 3
28 3 2
27 6 0
26 5 3