aws-samples / nexus-oss-on-aws
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 21 units with 1,120 lines of code in units (84.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (787 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (110 lines of code)
    • 16 very simple units (223 lines of code)
0% | 70% | 0% | 9% | 19%
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
ts0% | 91% | 0% | 0% | 8%
py0% | 0% | 0% | 47% | 52%
groovy0% | 0% | 0% | 19% | 80%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/lib0% | 91% | 0% | 0% | 8%
src/lambda.d/nexus3-purge0% | 0% | 0% | 61% | 38%
src/lambda.d/nexuspreconfigure0% | 0% | 0% | 31% | 68%
src/lambda.d/nexuspreconfigure-integration-test0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
constructor()
in src/lib/sonatype-nexus3-stack.ts
787 40 3
def handler()
in src/lambda.d/nexus3-purge/index.py
51 10 2
def handler()
in src/lambda.d/nexuspreconfigure/index.py
32 7 2
def wait_for_purge()
in src/lambda.d/nexus3-purge/index.py
19 6 2
def validateBlobstore()
in src/lambda.d/nexuspreconfigure/createBlobstore.groovy
8 6 1
def kubectl()
in src/lambda.d/nexus3-purge/index.py
16 5 1
def cfn_send()
in src/lambda.d/nexus3-purge/index.py
28 4 7
def cfn_send()
in src/lambda.d/nexuspreconfigure/index.py
28 4 7
def convertJsonFileToBlobstore()
in src/lambda.d/nexuspreconfigure/createBlobstore.groovy
15 4 1
def createBlobstore()
in src/lambda.d/nexuspreconfigure/createBlobstore.groovy
11 3 1
def nexus_password()
in src/lambda.d/nexuspreconfigure-integration-test/conftest.py
8 2 0
def deleteAllRepos()
in src/lambda.d/nexuspreconfigure/nexus.py
5 2 1
def _createScript()
in src/lambda.d/nexuspreconfigure/nexus.py
8 2 3
getAwsLoadBalancerControllerRepo()
in src/lib/sonatype-nexus3-stack.ts
73 1 0
private azOfSubnets()
in src/lib/sonatype-nexus3-stack.ts
3 1 1
def nexus_helper()
in src/lambda.d/nexuspreconfigure-integration-test/conftest.py
4 1 1
def nexus_client()
in src/lambda.d/nexuspreconfigure-integration-test/conftest.py
5 1 1
def __init__()
in src/lambda.d/nexuspreconfigure/nexus.py
4 1 4
def removeDefaultFileBlobstore()
in src/lambda.d/nexuspreconfigure/nexus.py
5 1 1
def createS3Blobstore()
in src/lambda.d/nexuspreconfigure/nexus.py
2 1 4