aws-samples / eks-aws-auth-configmap
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 14 units with 208 lines of code in units (74.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (39 lines of code)
    • 12 very simple units (169 lines of code)
0% | 0% | 0% | 18% | 81%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 0% | 18% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
standalone0% | 0% | 0% | 19% | 80%
lambda0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 14 most complex units
Unit# linesMcCabe index# params
def get_daemonset_term_handler()
in standalone/aws_eks_k8s_client.py
19 6 5
def check_pods()
in standalone/aws_eks_k8s_client.py
20 6 5
def create_kube_config_file_for_eks()
in standalone/kube_config.py
44 5 4
def construct_configmap_object()
in standalone/aws_auth_config.py
27 4 4
def apply_configmap()
in standalone/aws_auth_config.py
11 2 2
def get_token()
in standalone/sts_token.py
31 1 3
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 get_configuration()
in standalone/kube_config.py
4 1 1
def get_aws_session()
in standalone/test.py
10 1 0
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 lambda_handler()
in lambda/lambda_function.py
8 1 2