angular / webdriver-manager
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,070 lines of code in units (45.6% of code).
    • 2 very long units (309 lines of code)
    • 4 long units (247 lines of code)
    • 26 medium size units (790 lines of code)
    • 25 small units (385 lines of code)
    • 59 very small units (339 lines of code)
14% | 11% | 38% | 18% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts14% | 11% | 38% | 18% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/cmds31% | 18% | 25% | 14% | 9%
lib/files0% | 30% | 50% | 5% | 13%
lib0% | 0% | 70% | 3% | 25%
lib/binaries0% | 0% | 37% | 38% | 25%
spec/files0% | 0% | 86% | 0% | 13%
lib/cli0% | 0% | 23% | 59% | 17%
spec/binaries0% | 0% | 0% | 0% | 100%
spec/cmds0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function start()
in lib/cmds/start.ts
178 30 1
function update()
in lib/cmds/update.ts
131 22 1
function status()
in lib/cmds/status.ts
71 28 1
static getFile()
in lib/files/downloader.ts
71 11 6
function waitForAndroid()
in lib/cmds/start.ts
53 1 3
export function android()
in lib/cmds/initialize.ts
52 3 9
export function adb()
in lib/utils.ts
45 8 5
function startAndroid()
in lib/cmds/start.ts
44 9 6
private getSpecificChromeDriverVersion()
in lib/binaries/chrome_xml.ts
40 17 1
39 8 5
function signalWhenReady()
in lib/cmds/start.ts
38 5 8
static removeExistingFiles()
in lib/files/file_manager.ts
37 8 1
private requestJson()
in lib/binaries/config_source.ts
34 6 0
function unzip()
in lib/cmds/update.ts
33 7 3
function waitFor()
in lib/cmds/start.ts
32 5 1
function detachedRun()
in lib/cmds/start.ts
32 5 1
static downloadFile()
in lib/files/file_manager.ts
32 4 3
31 7 1
function setup()
in spec/files/file_manager_spec.ts
31 2 1
private requestXml()
in lib/binaries/config_source.ts
30 4 0