microsoft / BotFunctionalTestingService
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 64 units with 717 lines of code in units (84.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 11 medium size units (292 lines of code)
    • 15 small units (209 lines of code)
    • 38 very small units (216 lines of code)
0% | 0% | 40% | 29% | 30%
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% | 40% | 29% | 30%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 40% | 29% | 30%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function convertColumnAttributesToCamelCase()
in transcriptTransformationScript.js
36 9 1
34 3 3
27 6 1
26 6 3
26 3 6
26 6 4
function main()
in transcriptTransformationScript.js
26 4 1
25 6 2
async run()
in suite.js
23 5 0
22 3 3
function convertNumbersToString()
in transcriptTransformationScript.js
21 11 1
constructor()
in testData.js
19 33 2
async runTest()
in suite.js
17 6 1
17 5 2
16 1 2
16 4 1
16 5 1
constructor()
in suiteData.js
15 9 2
13 2 0
12 3 0