aws / meta-aws-ci
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
  • 52% duplication:
    • 7,082 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,749 duplicated lines
  • 408 duplicates
system52% (3,749 lines)
Duplication per Extension
yml93% (3,025 lines)
css25% (684 lines)
html5% (40 lines)
Duplication per Component (primary)
ref/cfn97% (1,414 lines)
core/cfn92% (1,135 lines)
workshop/themes17% (639 lines)
core/containers100% (226 lines)
ref/layer67% (212 lines)
workshop/static49% (85 lines)
core/buildspec95% (38 lines)
ROOT0% (0 lines)
workshop0% (0 lines)
workshop/layouts0% (0 lines)

Duplication Between Components (50+ lines)

G core/cfn core/cfn ref/cfn ref/cfn core/cfn--ref/cfn 2331 workshop/static workshop/static workshop/themes workshop/themes workshop/static--workshop/themes 383 core/containers core/containers ref/layer ref/layer core/containers--ref/layer 339

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 408 duplicates...
Size#FoldersFilesLinesCode
213 x 2 core/cfn
ref/cfn
ci_network.yml
ci_network.yml
1:246 (94%)
1:245 (94%)
view
177 x 2 ref/cfn
ref/cfn
build_image_qa.yml
build_image_sdk.yml
153:330 (55%)
153:330 (55%)
view
156 x 2 core/cfn
core/cfn
ci_container_poky.yml
ci_container_ti.dunfell.yml
89:245 (65%)
89:245 (65%)
view
127 x 2 core/cfn
ref/cfn
ci_container_ti.dunfell.yml
ci_build_containter.yml
96:223 (53%)
82:209 (50%)
view
127 x 2 core/cfn
ref/cfn
ci_container_poky.yml
ci_build_containter.yml
96:223 (53%)
82:209 (50%)
view
115 x 2 core/cfn
ref/cfn
build_demos_prod.yml
build_image_sdk.yml
202:317 (33%)
157:272 (36%)
view
115 x 2 core/cfn
ref/cfn
build_demos_prod.yml
build_image_qa.yml
202:317 (33%)
157:272 (36%)
view
113 x 2 core/containers/ci_image_ti.dunfell
ref/layer/ci/ci_container
runtimes.yml
runtimes.yml
1:123 (100%)
1:123 (100%)
view
113 x 2 core/containers/ci_image
ref/layer/ci/ci_container
runtimes.yml
runtimes.yml
1:123 (100%)
1:123 (100%)
view
113 x 2 core/containers/ci_image
core/containers/ci_image_ti.dunfell
runtimes.yml
runtimes.yml
1:123 (100%)
1:123 (100%)
view
109 x 2 core/cfn
ref/cfn
ci_checklayer.yml
build_image_prod.yml
68:177 (59%)
164:273 (32%)
view
108 x 2 ref/cfn
ref/cfn
build_image_qa.yml
build_image_sdk.yml
1:118 (33%)
1:118 (33%)
view
96 x 2 ref/cfn
ref/cfn
build_image_prod.yml
build_image_qa.yml
14:118 (28%)
14:118 (30%)
view
96 x 2 ref/cfn
ref/cfn
build_image_prod.yml
build_image_sdk.yml
14:118 (28%)
14:118 (30%)
view
94 x 2 core/cfn
ref/cfn
build_demos_prod.yml
build_image_prod.yml
201:295 (27%)
163:257 (28%)
view
93 x 2 core/cfn
core/cfn
build_demos_prod.yml
ci_checklayer.yml
202:295 (27%)
68:161 (50%)
view
93 x 2 ref/cfn
ref/cfn
build_image_prod.yml
build_image_sdk.yml
164:257 (28%)
157:250 (29%)
view
93 x 2 core/cfn
ref/cfn
ci_checklayer.yml
build_image_qa.yml
68:161 (50%)
157:250 (29%)
view
93 x 2 core/cfn
ref/cfn
ci_checklayer.yml
build_image_sdk.yml
68:161 (50%)
157:250 (29%)
view
93 x 2 ref/cfn
ref/cfn
build_image_prod.yml
build_image_qa.yml
164:257 (28%)
157:250 (29%)
view