aws-samples / aws-codepipeline-stepfunctions
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 76 units with 885 lines of code in units (60.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 10 medium size units (250 lines of code)
    • 24 small units (347 lines of code)
    • 42 very small units (288 lines of code)
0% | 0% | 28% | 39% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 28% | 39% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
pipeline/local_modules/pipeline_utils0% | 0% | 36% | 32% | 31%
pipeline/statemachines/deploy0% | 0% | 29% | 20% | 49%
pipeline/codepipeline0% | 0% | 32% | 36% | 30%
pipeline/local_modules/cloudformation0% | 0% | 11% | 70% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function executeTask()
in pipeline/statemachines/deploy/create_change_set.js
35 1 2
function executeTask()
in pipeline/statemachines/deploy/create_stack.js
31 1 2
Util.getPipelineExecutionId = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
28 8 5
CloudFormationManager.prototype.getChangeSetStatus = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
25 1 2
function triggerStateMachine()
in pipeline/codepipeline/state_machine_trigger.js
23 1 3
Util.packTarball = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
23 1 2
Util.uploadToS3 = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
22 2 2
function monitorStateMachineExecution()
in pipeline/codepipeline/state_machine_trigger.js
21 3 3
Util.extractZip = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
21 4 2
Util.exec = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
21 2 2
function detectChangeSetChanges()
in pipeline/statemachines/deploy/inspect_change_set.js
20 7 1
CloudFormationManager.prototype.getStackStatus = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
18 1 1
CloudFormationManager.prototype.createChangeSet = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
18 1 4
Util.uploadOutputArtifact = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
18 4 3
CloudFormationManager.prototype.getCloudFormationClient = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
17 3 0
CloudFormationManager.prototype.hasChangeSetCreationCompleted = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
17 4 2
Util.extractTarball = function()
in pipeline/local_modules/pipeline_utils/pipeline_utils.js
17 1 2
exports.index = function()
in pipeline/codepipeline/state_machine_trigger.js
16 3 3
CloudFormationManager.prototype.hasStackCreationCompleted = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
16 4 1
CloudFormationManager.prototype.createStack = function()
in pipeline/local_modules/cloudformation/cloudformation_manager.js
16 1 3