aws-samples / aws-codepipeline-stepfunctions
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 25% duplication:
    • 1,337 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 336 duplicated lines
  • 98 duplicates
system25% (336 lines)
Duplication per Extension
js23% (186 lines)
yaml27% (150 lines)
Duplication per Component (primary)
pipeline/statemachines/deploy46% (235 lines)
pipeline/codepipeline34% (101 lines)
pipeline/local_modules/cloudformation0% (0 lines)
pipeline/local_modules/pipeline_utils0% (0 lines)
app0% (0 lines)

Duplication Between Components (50+ lines)

G pipeline/codepipeline pipeline/codepipeline pipeline/statemachines/deploy pipeline/statemachines/deploy pipeline/codepipeline--pipeline/statemachines/deploy 150

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 98 duplicates...
Size#FoldersFilesLinesCode
31 x 2 pipeline/codepipeline
pipeline/statemachines/deploy
codepipeline_template.yaml
state_machine_template.yaml
32:62 (17%)
18:48 (10%)
view
28 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
create_change_set.js
create_stack.js
16:48 (65%)
16:50 (71%)
view
13 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_change_set_creation_status.js
check_stack_creation_status.js
27:42 (65%)
26:41 (68%)
view
12 x 2 pipeline/codepipeline
pipeline/statemachines/deploy
codepipeline_template.yaml
state_machine_template.yaml
114:125 (6%)
166:177 (3%)
view
10 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
create_change_set.js
create_stack.js
54:66 (23%)
52:64 (25%)
view
10 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_change_set_creation_status.js
create_change_set.js
30:42 (50%)
54:66 (23%)
view
10 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_change_set_creation_status.js
create_stack.js
30:42 (50%)
52:64 (25%)
view
10 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_stack_creation_status.js
create_stack.js
29:41 (52%)
52:64 (25%)
view
10 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_stack_creation_status.js
create_change_set.js
29:41 (52%)
54:66 (23%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_stack_exists.js
inspect_change_set.js
28:37 (60%)
59:68 (24%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_stack_exists.js
create_stack.js
28:37 (60%)
55:64 (23%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
create_change_set.js
inspect_change_set.js
57:66 (20%)
59:68 (24%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_change_set_creation_status.js
check_stack_exists.js
33:42 (45%)
28:37 (60%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
create_stack.js
execute_change_set.js
55:64 (23%)
29:38 (56%)
view
9 x 2 pipeline/codepipeline
pipeline/statemachines/deploy
codepipeline_template.yaml
state_machine_template.yaml
118:126 (5%)
73:81 (2%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
check_stack_creation_status.js
check_stack_exists.js
32:41 (47%)
28:37 (60%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
create_change_set.js
delete_change_set.js
57:66 (20%)
29:38 (56%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
create_stack.js
inspect_change_set.js
55:64 (23%)
59:68 (24%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
state_machine_template.yaml
state_machine_template.yaml
18:26 (2%)
156:164 (2%)
view
9 x 2 pipeline/statemachines/deploy
pipeline/statemachines/deploy
delete_change_set.js
execute_change_set.js
29:38 (56%)
29:38 (56%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 8 pipeline/statemachines/deploy
pipeline/statemachines/deploy
pipeline/statemachines/deploy
pipeline/statemachines/deploy
pipeline/statemachines/deploy
pipeline/statemachines/deploy
pipeline/statemachines/deploy
pipeline/statemachines/deploy
create_stack.js
create_change_set.js
inspect_change_set.js
check_stack_creation_status.js
check_change_set_creation_status.js
delete_change_set.js
check_stack_exists.js
execute_change_set.js
55:66 
57:68 
59:70 
32:43 
33:44 
29:40 
28:39 
29:40 
view