aws-samples / eks-aws-auth-configmap
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 208 lines of code in units (74.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (102 lines of code)
    • 3 small units (50 lines of code)
    • 8 very small units (56 lines of code)
0% | 0% | 49% | 24% | 26%
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% | 49% | 24% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
standalone0% | 0% | 51% | 25% | 24%
lambda0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 14 longest units
Unit# linesMcCabe index# params
def create_kube_config_file_for_eks()
in standalone/kube_config.py
44 5 4
def get_token()
in standalone/sts_token.py
31 1 3
def construct_configmap_object()
in standalone/aws_auth_config.py
27 4 4
def check_pods()
in standalone/aws_eks_k8s_client.py
20 6 5
def get_daemonset_term_handler()
in standalone/aws_eks_k8s_client.py
19 6 5
def apply_configmap()
in standalone/aws_auth_config.py
11 2 2
def get_aws_session()
in standalone/test.py
10 1 0
def get_k8s_api_client()
in standalone/aws_eks_k8s_client.py
8 1 4
def apply_aws_auth_config_map()
in standalone/aws_eks_k8s_client.py
8 1 7
def lambda_handler()
in lambda/lambda_function.py
8 1 2
def test_apply_auth_config()
in standalone/test.py
6 1 0
def test_get_daemonset()
in standalone/test.py
6 1 0
def test_get_pods()
in standalone/test.py
6 1 0
def get_configuration()
in standalone/kube_config.py
4 1 1