aws-samples / aws-codepipeline-stepfunctions
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 76 units with 885 lines of code in units (60.7% 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 (48 lines of code)
    • 74 very simple units (837 lines of code)
0% | 0% | 0% | 5% | 94%
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
js0% | 0% | 0% | 5% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
pipeline/local_modules/pipeline_utils0% | 0% | 0% | 8% | 91%
pipeline/statemachines/deploy0% | 0% | 0% | 9% | 90%
pipeline/local_modules/cloudformation0% | 0% | 0% | 0% | 100%
pipeline/codepipeline0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
Util.getPipelineExecutionId = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
28 8 5
function detectChangeSetChanges()
in pipeline/statemachines/deploy/inspect_change_set.js
20 7 1
CloudFormationManager.prototype.hasStackCreationCompleted = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
16 4 1
CloudFormationManager.prototype.hasChangeSetCreationCompleted = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
17 4 2
Util.getCodeRevisionS3Details = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
16 4 2
Util.extractZip = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
21 4 2
Util.uploadOutputArtifact = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
18 4 3
Util.inputArtifact = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
16 4 2
function monitorStateMachineExecution()
in pipeline/codepipeline/state_machine_trigger.js
21 3 3
exports.index = function()
in pipeline/codepipeline/state_machine_trigger.js
16 3 3
CloudFormationManager.prototype.getCloudFormationClient = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
17 3 0
Util.rmdir = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
7 3 1
Util.actionUserParameter = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
11 3 2
function executeTask()
in pipeline/statemachines/deploy/check_stack_creation_status.js
10 2 2
function executeTask()
in pipeline/statemachines/deploy/check_change_set_creation_status.js
11 2 2
Util.uploadToS3 = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
22 2 2
mkdirp()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
4 2 2
mkdirp()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
7 2 1
Util.exec = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
21 2 2
zipFolder()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
7 2 3