aws-quickstart / quickstart-sios-protection-suite
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 11 units with 182 lines of code in units (7.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (98 lines of code)
    • 3 small units (54 lines of code)
    • 5 very small units (30 lines of code)
0% | 0% | 53% | 29% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
pl0% | 0% | 53% | 29% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts0% | 0% | 53% | 29% | 16%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
sub GetLicenseFile()
in scripts/InstallLicAndStartLK.pl
43 9 0
sub AddRemoteSystem()
in scripts/CreateCommPath.pl
31 7 0
sub StartLifeKeeper()
in scripts/InstallLicAndStartLK.pl
24 6 0
sub CanextendCheck()
in scripts/CreateMirrorHierarchy.pl
19 3 0
sub AddNetPath()
in scripts/CreateCommPath.pl
18 3 0
sub InstallLicense()
in scripts/InstallLicAndStartLK.pl
17 3 0
sub usage()
in scripts/CreateCommPath.pl
7 1 0
sub CheckLKStatus()
in scripts/InstallLicAndStartLK.pl
7 1 0
sub usage()
in scripts/CreateMirrorHierarchy.pl
6 1 0
sub usage()
in scripts/InstallLicAndStartLK.pl
6 1 0
sub lookupLicenseParameter()
in scripts/InstallLicAndStartLK.pl
4 1 0