aws-quickstart / quickstart-codepipeline-bluegreen-deployment
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 14 units with 181 lines of code in units (60.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (51 lines of code)
    • 1 medium size units (39 lines of code)
    • 3 small units (47 lines of code)
    • 9 very small units (44 lines of code)
0% | 28% | 21% | 25% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 28% | 21% | 25% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/CreateEnvironment0% | 51% | 0% | 31% | 18%
functions/source/TerminateandReSwap0% | 0% | 48% | 19% | 32%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
def handler()
in functions/source/CreateEnvironment/index.py
51 8 2
def handler()
in functions/source/TerminateandReSwap/index.py
39 7 2
def DeleteGreenEnvironment()
in functions/source/TerminateandReSwap/index.py
16 5 1
def CreateGreenEnvironment()
in functions/source/CreateEnvironment/index.py
16 3 4
def CreateConfigTemplateBlue()
in functions/source/CreateEnvironment/index.py
15 3 3
def SwapGreenandBlue()
in functions/source/TerminateandReSwap/index.py
8 3 2
def DeleteConfigTemplateBlue()
in functions/source/TerminateandReSwap/index.py
7 3 2
def GetBlueEnvInfo()
in functions/source/CreateEnvironment/index.py
7 1 1
def put_job_success()
in functions/source/TerminateandReSwap/index.py
4 1 2
def put_job_failure()
in functions/source/TerminateandReSwap/index.py
4 1 2
def put_job_success()
in functions/source/CreateEnvironment/index.py
4 1 2
def put_job_failure()
in functions/source/CreateEnvironment/index.py
4 1 2
def timeout()
in functions/source/TerminateandReSwap/index.py
3 1 2
def timeout()
in functions/source/CreateEnvironment/index.py
3 1 2