aws-quickstart / quickstart-ibm-integration
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 78 units with 1,039 lines of code in units (14.5% of code).
    • 2 very long units (271 lines of code)
    • 1 long units (74 lines of code)
    • 6 medium size units (197 lines of code)
    • 17 small units (240 lines of code)
    • 52 very small units (257 lines of code)
26% | 7% | 18% | 23% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py26% | 7% | 18% | 23% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts55% | 15% | 5% | 8% | 14%
scripts/yapl0% | 0% | 30% | 35% | 33%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def installOCP()
in scripts/cp4i_install.py
154 16 2
def main()
in scripts/cp4i_install.py
117 13 2
def configureOCS()
in scripts/cp4i_install.py
74 11 2
def _exceptionStackTTB()
in scripts/yapl/Trace.py
42 13 4
def getInputArgs()
in scripts/yapl/Utilities.py
41 15 2
def _exceptionStackBTT()
in scripts/yapl/Trace.py
36 9 4
def _log()
in scripts/yapl/Trace.py
27 10 5
def __init()
in scripts/cp4i_install.py
27 2 4
def listFilesOfType()
in scripts/yapl/Utilities.py
24 11 2
def getS3Object()
in scripts/cp4i_install.py
20 5 4
def exportLogs()
in scripts/yapl/LogExporter.py
19 8 2
def bucketExists()
in scripts/yapl/S3Helper.py
19 5 2
def createBucket()
in scripts/yapl/S3Helper.py
18 5 3
def _coerceLevel()
in scripts/yapl/Trace.py
15 10 2
def _patternToRegEx()
in scripts/yapl/Trace.py
15 6 2
def __init__()
in scripts/yapl/LogExporter.py
15 5 5
def replaceTextInFile()
in scripts/yapl/Utilities.py
14 4 4
def parseTraceString()
in scripts/yapl/Trace.py
13 4 1
def showFile()
in scripts/yapl/Utilities.py
12 4 1
def isLoggable()
in scripts/yapl/Trace.py
12 5 2