awslabs / amazon-kinesis-client-nodejs
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 33 units with 319 lines of code in units (91.7% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (68 lines of code)
    • 2 medium size units (61 lines of code)
    • 4 small units (57 lines of code)
    • 26 very small units (133 lines of code)
0% | 21% | 19% | 17% | 41%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 21% | 19% | 17% | 41%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 87% | 0% | 0% | 12%
lib/kcl0% | 0% | 25% | 23% | 51%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
68 1 1
37 7 1
function KCLProcess()
in lib/kcl/kcl_process.js
24 10 4
19 7 1
14 2 1
12 3 2
function KCLManager()
in lib/kcl/kcl_manager.js
12 2 4
10 4 1
function IOHandler()
in lib/kcl/io_handler.js
10 1 3
10 1 2
function cloneToInput()
in lib/kcl/kcl_manager.js
9 3 1
KCLManager.prototype.run = function()
in lib/kcl/kcl_manager.js
9 2 0
8 2 2
function ActionHandler()
in lib/kcl/action_handler.js
7 1 1
6 1 0
6 2 2
5 1 2
5 1 0
function Checkpointer()
in lib/kcl/checkpointer.js
4 1 1
4 1 0