microsoft / vsixbootstrapper
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 27 units with 309 lines of code in units (33.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (136 lines of code)
    • 4 small units (57 lines of code)
    • 19 very small units (116 lines of code)
0% | 0% | 44% | 18% | 37%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
h0% | 0% | 45% | 18% | 35%
cpp0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/VSIXBootstrapper.Shared0% | 0% | 45% | 18% | 35%
src/VSIXBootstrapper0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
int Run()
in src/VSIXBootstrapper.Shared/VSIXBootstrapper.h
46 7 3
std::wstring FromConfiguration()
in src/VSIXBootstrapper.Shared/VSIXBootstrapper.h
43 9 0
static BOOL __cdecl ProcessCreate()
in src/VSIXBootstrapper.Shared/Process.h
25 1 10
std::wstring GetString()
in src/VSIXBootstrapper.Shared/RegistryKey.h
22 4 1
std::wstring FormatString()
in src/VSIXBootstrapper.Shared/Resources.h
17 3 2
std::wstring FromRegistry()
in src/VSIXBootstrapper.Shared/VSIXBootstrapper.h
17 3 1
void ShowError()
in src/VSIXBootstrapper.Shared/VSIXBootstrapper.h
12 2 4
static LSTATUS __cdecl RegistryKeyQueryValue()
in src/VSIXBootstrapper.Shared/RegistryKey.h
11 1 6
DWORD GetExitCode()
in src/VSIXBootstrapper.Shared/Process.h
10 2 0
static LSTATUS __cdecl RegistryKeyOpen()
in src/VSIXBootstrapper.Shared/RegistryKey.h
10 1 5
std::wstring GetString()
in src/VSIXBootstrapper.Shared/Resources.h
10 2 1
static void __cdecl OnInvalidParameter()
in src/VSIXBootstrapper.Shared/Resources.h
10 1 5
std::wstring FormatString()
in src/VSIXBootstrapper.Shared/Resources.h
8 1 2
int WINAPI wWinMain()
in src/VSIXBootstrapper/Program.cpp
8 1 4
void ThrowIfInvalidHandle()
in src/VSIXBootstrapper.Shared/Process.h
7 2 0
static int __cdecl ErrorShowMessage()
in src/VSIXBootstrapper.Shared/VSIXBootstrapper.h
7 1 3
void Wait()
in src/VSIXBootstrapper.Shared/Process.h
5 1 0
static bool __cdecl IOFileExists()
in src/VSIXBootstrapper.Shared/VSIXBootstrapper.h
5 2 1
static HRESULT __cdecl CoInitialize()
in src/VSIXBootstrapper.Shared/CoInitializer.h
4 1 1
static void __cdecl CoUninitialize()
in src/VSIXBootstrapper.Shared/CoInitializer.h
4 1 0