microsoft / WSL-DistroLauncher
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 17 units with 279 lines of code in units (28.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (72 lines of code)
    • 2 medium size units (60 lines of code)
    • 5 small units (79 lines of code)
    • 9 very small units (68 lines of code)
0% | 25% | 21% | 28% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 25% | 21% | 28% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
DistroLauncher0% | 25% | 21% | 28% | 24%
Alternative Visuals
Longest Units
Top 17 longest units
Unit# linesMcCabe index# params
int wmain()
in DistroLauncher/DistroLauncher.cpp
72 28 2
ULONG DistributionInfo::QueryUid()
in DistroLauncher/DistributionInfo.cpp
35 8 1
HRESULT InstallDistribution()
in DistroLauncher/DistroLauncher.cpp
25 6 1
bool DistributionInfo::CreateUser()
in DistroLauncher/DistributionInfo.cpp
20 5 1
void Helpers::PrintErrorMessage()
in DistroLauncher/Helpers.cpp
16 2 1
HRESULT FormatMessageHelperVa()
in DistroLauncher/Helpers.cpp
16 3 3
std::wstring Helpers::GetUserInput()
in DistroLauncher/Helpers.cpp
15 4 2
HRESULT SetDefaultUser()
in DistroLauncher/DistroLauncher.cpp
12 3 1
HRESULT PrintMessageVa()
in DistroLauncher/Helpers.cpp
9 2 2
9 6 0
HRESULT Helpers::PrintMessage()
in DistroLauncher/Helpers.cpp
8 1 2
HRESULT WslApiLoader::WslRegisterDistribution()
in DistroLauncher/WslApiLoader.cpp
8 2 0
HRESULT WslApiLoader::WslConfigureDistribution()
in DistroLauncher/WslApiLoader.cpp
8 2 2
HRESULT WslApiLoader::WslLaunchInteractive()
in DistroLauncher/WslApiLoader.cpp
8 2 3
HRESULT WslApiLoader::WslLaunch()
in DistroLauncher/WslApiLoader.cpp
8 2 6
void Helpers::PromptForInput()
in DistroLauncher/Helpers.cpp
6 1 0
BOOL WslApiLoader::WslIsDistributionRegistered()
in DistroLauncher/WslApiLoader.cpp
4 1 0