aws-cloudformation / aws-cloudformation-resource-providers-imagebuilder
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
  • 47% duplication:
    • 2,211 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,049 duplicated lines
  • 705 duplicates
system47% (1,049 lines)
Duplication per Extension
java45% (808 lines)
yaml70% (199 lines)
yml31% (42 lines)
Duplication per Component (primary)
distribution-configuration/src42% (138 lines)
infrastructure-configuration/src49% (137 lines)
image-pipeline/src46% (137 lines)
container-recipe/src51% (113 lines)
image-recipe/src41% (101 lines)
image/src38% (97 lines)
component/src46% (85 lines)
image-recipe67% (39 lines)
image66% (39 lines)
image-pipeline55% (33 lines)
component53% (33 lines)
distribution-configuration57% (33 lines)
container-recipe53% (32 lines)
infrastructure-configuration53% (32 lines)

Duplication Between Components (50+ lines)

G distribution-configuration/src distribution-configuration/src infrastructure-configuration/src infrastructure-configuration/src distribution-configuration/src--infrastructure-configuration/src 250 image-pipeline/src image-pipeline/src distribution-configuration/src--image-pipeline/src 245 image-recipe/src image-recipe/src distribution-configuration/src--image-recipe/src 163 image/src image/src distribution-configuration/src--image/src 152 image-pipeline/src--infrastructure-configuration/src 245 image-pipeline/src--image-recipe/src 166 image-pipeline/src--image/src 181 container-recipe/src container-recipe/src container-recipe/src--distribution-configuration/src 188 container-recipe/src--infrastructure-configuration/src 163 container-recipe/src--image-pipeline/src 166 container-recipe/src--image-recipe/src 202 container-recipe/src--image/src 169 image-recipe/src--infrastructure-configuration/src 163 image-recipe/src--image/src 169 image/src--infrastructure-configuration/src 152 component/src component/src component/src--distribution-configuration/src 150 component/src--infrastructure-configuration/src 150 component/src--image-pipeline/src 151 component/src--container-recipe/src 178 component/src--image-recipe/src 178 component/src--image/src 155 image-recipe image-recipe image image image-recipe--image 74 infrastructure-configuration infrastructure-configuration image-recipe--infrastructure-configuration 62 image--infrastructure-configuration 62 component component component--image-recipe 62 component--image 64 distribution-configuration distribution-configuration component--distribution-configuration 66 image-pipeline image-pipeline component--image-pipeline 66 component--infrastructure-configuration 64 distribution-configuration--image-recipe 62 distribution-configuration--image 64 distribution-configuration--image-pipeline 66 distribution-configuration--infrastructure-configuration 64 image-pipeline--image-recipe 62 image-pipeline--image 64 image-pipeline--infrastructure-configuration 64 container-recipe container-recipe container-recipe--image-recipe 64 container-recipe--image 60

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 705 duplicates...
Size#FoldersFilesLinesCode
26 x 2 component
distribution-configuration
resource-role.yaml
resource-role.yaml
1:27 (60%)
1:27 (68%)
view
26 x 2 distribution-configuration
image-pipeline
resource-role.yaml
resource-role.yaml
1:27 (68%)
1:27 (63%)
view
26 x 2 component
image-pipeline
resource-role.yaml
resource-role.yaml
1:27 (60%)
1:27 (63%)
view
25 x 2 distribution-configuration
infrastructure-configuration
resource-role.yaml
resource-role.yaml
1:26 (65%)
1:26 (60%)
view
25 x 2 container-recipe
image-recipe
resource-role.yaml
resource-role.yaml
1:26 (62%)
1:26 (64%)
view
25 x 2 component
infrastructure-configuration
resource-role.yaml
resource-role.yaml
1:26 (58%)
1:26 (60%)
view
25 x 2 image-pipeline
infrastructure-configuration
resource-role.yaml
resource-role.yaml
1:26 (60%)
1:26 (60%)
view
24 x 2 container-recipe
image-pipeline
resource-role.yaml
resource-role.yaml
1:25 (60%)
1:25 (58%)
view
24 x 2 image-recipe
infrastructure-configuration
resource-role.yaml
resource-role.yaml
1:25 (61%)
1:25 (58%)
view
24 x 2 component
image-recipe
resource-role.yaml
resource-role.yaml
1:25 (55%)
1:25 (61%)
view
24 x 2 image-pipeline
image-recipe
resource-role.yaml
resource-role.yaml
1:25 (58%)
1:25 (61%)
view
24 x 2 container-recipe
distribution-configuration
resource-role.yaml
resource-role.yaml
1:25 (60%)
1:25 (63%)
view
24 x 2 distribution-configuration
image-recipe
resource-role.yaml
resource-role.yaml
1:25 (63%)
1:25 (61%)
view
24 x 2 component
container-recipe
resource-role.yaml
resource-role.yaml
1:25 (55%)
1:25 (60%)
view
24 x 2 container-recipe
infrastructure-configuration
resource-role.yaml
resource-role.yaml
1:25 (60%)
1:25 (58%)
view
23 x 2 container-recipe/src/mai...builder/containerrecipe
image-recipe/src/main/ja...magebuilder/imagerecipe
ReadHandler.java
ReadHandler.java
17:44 (54%)
16:43 (54%)
view
18 x 2 distribution-configurati...stributionconfiguration
image-pipeline/src/main/...gebuilder/imagepipeline
ReadHandler.java
ReadHandler.java
16:34 (42%)
15:33 (42%)
view
18 x 2 container-recipe/src/mai...builder/containerrecipe
infrastructure-configura...astructureconfiguration
ReadHandler.java
ReadHandler.java
17:35 (42%)
16:34 (42%)
view
18 x 2 component/src/main/java/.../imagebuilder/component
infrastructure-configura...astructureconfiguration
ReadHandler.java
ReadHandler.java
16:34 (42%)
16:34 (42%)
view
18 x 2 container-recipe/src/mai...builder/containerrecipe
image/src/main/java/soft...azon/imagebuilder/image
ReadHandler.java
ReadHandler.java
17:35 (42%)
14:32 (42%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
14 x 2 image-recipe/src/main/ja...magebuilder/imagerecipe
container-recipe/src/mai...builder/containerrecipe
ReadHandler.java
ReadHandler.java
22:37 
23:38 
view
13 x 4 image-recipe/src/main/ja...magebuilder/imagerecipe
container-recipe/src/mai...builder/containerrecipe
component/src/main/java/.../imagebuilder/component
image/src/main/java/soft...azon/imagebuilder/image
UpdateHandler.java
UpdateHandler.java
UpdateHandler.java
UpdateHandler.java
13:31 
12:30 
13:31 
13:31 
view
6 x 2 container-recipe/src/mai...builder/containerrecipe
distribution-configurati...stributionconfiguration
Translator.java
Translator.java
62:69 
78:85 
view