aws-samples / private-link-cross-account-access-for-msk
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 176 lines of code in units (11.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (128 lines of code)
    • 1 small units (11 lines of code)
    • 6 very small units (37 lines of code)
0% | 0% | 72% | 6% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 72% | 6% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 91% | 0% | 8%
remoteaccountpython0% | 0% | 54% | 12% | 33%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
def create_read_only_policy()
in createBrokerEndpointsDDBReadOnyRole.py
43 3 1
def create_role_with_policy()
in createBrokerEndpointsDDBReadOnyRole.py
36 4 1
def createVPCEndpoints()
in remoteaccountpython/create-msk-vpc-endpoints.py
28 2 2
def createAliasRecordsetForEndpoint()
in remoteaccountpython/create-msk-vpc-endpoints.py
21 1 4
def getAZsfromService()
in remoteaccountpython/get-availabilityzones.py
11 4 2
def getServiceEndpoints()
in remoteaccountpython/create-msk-vpc-endpoints.py
8 2 1
def get_dynamo_db_arn()
in createBrokerEndpointsDDBReadOnyRole.py
7 2 1
def getAZId()
in remoteaccountpython/get-availabilityzones.py
7 2 2
def getAZfromId()
in remoteaccountpython/get-availabilityzones.py
7 2 2
def getHostedZoneId()
in remoteaccountpython/create-msk-vpc-endpoints.py
5 3 0
def getSubnetIds()
in remoteaccountpython/create-msk-vpc-endpoints.py
3 1 2