aws-quickstart / quickstart-ibaset-solumina
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 1,163 units with 10,415 lines of code in units (31.0% of code).
    • 2 very long units (384 lines of code)
    • 14 long units (938 lines of code)
    • 94 medium size units (2,782 lines of code)
    • 167 small units (2,415 lines of code)
    • 886 very small units (3,896 lines of code)
3% | 9% | 26% | 23% | 37%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py3% | 9% | 26% | 23% | 37%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambda/source/elasticsearch4% | 8% | 26% | 22% | 37%
lambda/source/bastion3% | 9% | 26% | 23% | 37%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in lambda/source/elasticsearch/elkpostscriptlambda.py
209 6 2
def setup_bastion()
in lambda/source/bastion/bastionpostscriptlambda.py
175 17 3
def urlopen()
in lambda/source/elasticsearch/requests/packages/urllib3/connectionpool.py
91 9 12
def urlopen()
in lambda/source/bastion/requests/packages/urllib3/connectionpool.py
91 9 12
def send()
in lambda/source/elasticsearch/requests/adapters.py
83 20 7
def send()
in lambda/source/bastion/requests/adapters.py
83 20 7
def resolve_redirects()
in lambda/source/elasticsearch/requests/sessions.py
67 21 9
def build_digest_header()
in lambda/source/elasticsearch/requests/auth.py
67 19 3
def resolve_redirects()
in lambda/source/bastion/requests/sessions.py
67 21 9
def build_digest_header()
in lambda/source/bastion/requests/auth.py
67 19 3
def urlopen()
in lambda/source/elasticsearch/requests/packages/urllib3/contrib/appengine.py
55 18 9
def feed()
in lambda/source/elasticsearch/requests/packages/chardet/universaldetector.py
55 24 2
def urlopen()
in lambda/source/bastion/requests/packages/urllib3/contrib/appengine.py
55 18 9
def feed()
in lambda/source/bastion/requests/packages/chardet/universaldetector.py
55 24 2
def prepare_url()
in lambda/source/elasticsearch/requests/models.py
51 13 3
def prepare_url()
in lambda/source/bastion/requests/models.py
51 13 3
def _new_conn()
in lambda/source/elasticsearch/requests/packages/urllib3/contrib/ntlmpool.py
50 7 1
def _new_conn()
in lambda/source/bastion/requests/packages/urllib3/contrib/ntlmpool.py
50 7 1
def print_()
in lambda/source/elasticsearch/requests/packages/urllib3/packages/six.py
43 18 2
def print_()
in lambda/source/bastion/requests/packages/urllib3/packages/six.py
43 18 2