microsoft / fast-binary-indexed-tree-js
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 19 units with 128 lines of code in units (62.4% 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)
    • 3 small units (38 lines of code)
    • 16 very small units (90 lines of code)
0% | 0% | 0% | 29% | 70%
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% | 29% | 70%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib0% | 0% | 0% | 29% | 70%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
_find()
in lib/index.js
16 4 2
11 1 1
_readSingle()
in lib/index.js
11 2 1
_read()
in lib/index.js
9 2 1
_checkIndex()
in lib/index.js
8 3 1
constructor()
in lib/index.js
7 2 2
_changed()
in lib/index.js
7 4 2
_update()
in lib/index.js
7 2 2
_getTree()
in lib/index.js
6 2 1
update()
in lib/index.js
6 1 2
read()
in lib/index.js
6 2 1
lowerBound()
in lib/index.js
6 2 1
upperBound()
in lib/index.js
6 2 1
_writeSingle()
in lib/index.js
5 1 2
readSingle()
in lib/index.js
4 1 1
writeSingle()
in lib/index.js
4 1 2
get defaultFrequency()
in lib/index.js
3 1 0
get maxVal()
in lib/index.js
3 1 0
_addTree()
in lib/index.js
3 1 2