aws-quickstart / connect-integration-servicenow-itsm
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 39 units with 366 lines of code in units (33.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 14 small units (189 lines of code)
    • 25 very small units (177 lines of code)
0% | 0% | 0% | 51% | 48%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 0% | 51% | 48%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/CreateIncidentByPhone0% | 0% | 0% | 48% | 51%
functions/source/GetLatestStateByPhone0% | 0% | 0% | 59% | 40%
functions/source/GetIncidentByPhone0% | 0% | 0% | 46% | 53%
functions/source/GetIncidentState0% | 0% | 0% | 70% | 29%
functions/source/CreateIncident0% | 0% | 0% | 35% | 64%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
var getData = function()
in functions/source/GetIncidentState/index.js
20 2 1
"": function()
in functions/source/GetIncidentByPhone/index.js
17 2 2
var getPostOptions = function()
in functions/source/CreateIncident/index.js
14 1 1
var getRequestOptions = function()
in functions/source/CreateIncidentByPhone/index.js
13 1 2
var getPhoneRequestOptions = function()
in functions/source/CreateIncidentByPhone/index.js
13 1 1
var getPostOptions = function()
in functions/source/CreateIncidentByPhone/index.js
13 1 1
var getRequestOptions = function()
in functions/source/GetIncidentByPhone/index.js
13 1 2
var getPhoneRequestOptions = function()
in functions/source/GetIncidentByPhone/index.js
13 1 1
var getRequestOptions = function()
in functions/source/GetLatestStateByPhone/index.js
13 1 2
var getPhoneRequestOptions = function()
in functions/source/GetLatestStateByPhone/index.js
13 1 1
var getRequestOptions = function()
in functions/source/GetIncidentState/index.js
13 1 1
"": function()
in functions/source/CreateIncidentByPhone/index.js
12 2 2
"" : function()
in functions/source/GetLatestStateByPhone/index.js
11 2 2
"" : function()
in functions/source/GetLatestStateByPhone/index.js
11 2 2
exports.handler = function()
in functions/source/CreateIncidentByPhone/index.js
10 3 3
var getData = function()
in functions/source/CreateIncidentByPhone/index.js
10 1 2
var postData = function()
in functions/source/CreateIncident/index.js
10 1 1
exports.handler = function()
in functions/source/GetIncidentByPhone/index.js
10 3 3
"": function()
in functions/source/GetIncidentByPhone/index.js
10 2 2
var getData = function()
in functions/source/GetIncidentByPhone/index.js
10 1 2