angular / webdriver-js-extender
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 16 units with 169 lines of code in units (19.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (90 lines of code)
    • 2 small units (25 lines of code)
    • 11 very small units (54 lines of code)
0% | 0% | 53% | 14% | 31%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 61% | 17% | 21%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
spec/command_tests0% | 0% | 73% | 26% | 0%
spec0% | 0% | 100% | 0% | 0%
lib0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 16 longest units
Unit# linesMcCabe index# params
34 6 1
function runTestcase()
in spec/command_tests/table_spec.ts
34 12 1
22 1 4
function buildCommandMap()
in spec/command_tests/helpers.ts
13 5 1
(driver as any)[commandName] = function()()
in spec/command_tests/helpers.ts
12 1 1
function copy()
in gulpfile.js
9 1 0
9 2 2
constructor()
in lib/extender.ts
6 2 1
this.execute = function()
in lib/deferred_executor.ts
5 1 1
this.defineCommand = function()
in lib/deferred_executor.ts
5 1 3
4 1 0
function format()
in gulpfile.js
4 1 0
defineCommand()
in lib/extender.ts
4 1 4
function build()
in gulpfile.js
3 1 0
function test()
in gulpfile.js
3 1 0
constructor()
in lib/deferred_executor.ts
2 1 1