microsoft / Guestivus
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 15 units with 113 lines of code in units (3.0% 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)
    • 2 small units (30 lines of code)
    • 13 very small units (83 lines of code)
0% | 0% | 0% | 26% | 73%
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% | 78% | 21%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/App/js0% | 0% | 0% | 66% | 33%
src/App0% | 0% | 0% | 100% | 0%
GuestivusLib0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
static getDirContents()
in src/App/js/fileSystem.js
16 2 2
function createWindow()
in src/App/main.js
14 1 0
def execGit()
in GuestivusLib/GuestivusLib.py
9 5 2
def isLFSInstalledWin()
in GuestivusLib/GuestivusLib.py
9 2 1
def localRootIsRepo()
in GuestivusLib/GuestivusLib.py
9 3 1
def checkRequirements()
in GuestivusLib/GuestivusLib.py
9 4 1
def __init__()
in GuestivusLib/GuestivusLib.py
8 1 3
def isGitInstalledWin()
in GuestivusLib/GuestivusLib.py
8 2 1
def localRootExists()
in GuestivusLib/GuestivusLib.py
8 5 1
static getFullDirStructure()
in src/App/js/fileSystem.js
8 1 1
def localRootValid()
in GuestivusLib/GuestivusLib.py
7 3 1
def __init__()
in GuestivusLib/GuestivusLib.py
2 1 1
def getEnvPaths()
in GuestivusLib/GuestivusLib.py
2 1 1
def pingRemoteGitHost()
in GuestivusLib/GuestivusLib.py
2 1 3
def localRepoSupportLFS()
in GuestivusLib/GuestivusLib.py
2 1 1