aws-samples / multi-arch-docker-images
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
  • 33% duplication:
    • 338 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 113 duplicated lines
  • 8 duplicates
system33% (113 lines)
Duplication per Extension
yaml34% (113 lines)
Duplication per Component (primary)
cloudformation30% (50 lines)
configuration63% (49 lines)
eks-configs16% (14 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
19 x 2 configuration
configuration
buildspec-amd.yaml
buildspec-arm.yaml
7:25 (76%)
7:25 (76%)
view
13 x 2 cloudformation
cloudformation
cloudformation.yaml
cloudformation.yaml
44:57 (7%)
84:97 (7%)
view
11 x 2 configuration
configuration
buildspec-arm.yaml
buildspec-manifest.yaml
7:17 (44%)
9:19 (40%)
view
11 x 2 configuration
configuration
buildspec-amd.yaml
buildspec-manifest.yaml
7:17 (44%)
9:19 (40%)
view
8 x 2 cloudformation
cloudformation
cloudformation.yaml
cloudformation.yaml
148:155 (4%)
172:179 (4%)
view
8 x 2 cloudformation
cloudformation
cloudformation.yaml
cloudformation.yaml
159:166 (4%)
172:179 (4%)
view
8 x 2 cloudformation
cloudformation
cloudformation.yaml
cloudformation.yaml
148:155 (4%)
159:166 (4%)
view
7 x 2 eks-configs
eks-configs
cluster-template.yaml
cluster-template.yaml
16:22 (13%)
28:34 (13%)
view