aws-amplify / aws-amplify.github.io
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
  • 11% duplication:
    • 7,270 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 856 duplicated lines
  • 69 duplicates
system11% (856 lines)
Duplication per Extension
scss9% (425 lines)
html26% (381 lines)
hbs8% (50 lines)
Duplication per Component (primary)
amplify-theme/_sass/components12% (402 lines)
amplify-theme/_layouts39% (325 lines)
amplify-theme/_includes14% (56 lines)
amplify-theme/typedoc/partials9% (50 lines)
amplify-theme/_sass/objects3% (16 lines)
amplify-theme/_sass/generic1% (7 lines)
_layouts0% (0 lines)
ROOT0% (0 lines)
amplify-theme/assets/js0% (0 lines)
amplify-theme/assets/css0% (0 lines)
amplify-theme/typedoc/templates0% (0 lines)
amplify-theme/_sass0% (0 lines)
amplify-theme/_sass/tools0% (0 lines)
amplify-theme/_sass/utilities0% (0 lines)
amplify-theme/_sass/themes0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 69 duplicates...
Size#FoldersFilesLinesCode
34 x 2 amplify-theme/_sass/components
amplify-theme/_sass/components
_redesign.scss
_redesign.scss
198:238 (1%)
2542:2582 (1%)
view
23 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-detail.html
default.html
20:62 (62%)
99:141 (15%)
view
23 x 2 amplify-theme/_layouts
amplify-theme/_layouts
default.html
examples.html
99:141 (15%)
60:102 (36%)
view
23 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-detail.html
examples.html
20:62 (62%)
60:102 (36%)
view
22 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-home.html
blog.html
24:57 (57%)
61:102 (31%)
view
22 x 2 amplify-theme/_includes
amplify-theme/_includes
docs-header.html
site-header.html
7:37 (18%)
7:37 (16%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-home.html
default.html
31:57 (55%)
115:141 (13%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
default.html
ui_library.html
115:141 (13%)
86:112 (31%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-detail.html
blog-home.html
36:62 (56%)
31:57 (55%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
examples.html
ui_library.html
76:102 (33%)
86:112 (31%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog.html
examples.html
76:102 (30%)
76:102 (33%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog.html
ui_library.html
76:102 (30%)
86:112 (31%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog.html
default.html
76:102 (30%)
115:141 (13%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-home.html
ui_library.html
31:57 (55%)
86:112 (31%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-detail.html
ui_library.html
36:62 (56%)
86:112 (31%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-home.html
examples.html
31:57 (55%)
76:102 (33%)
view
21 x 2 amplify-theme/_layouts
amplify-theme/_layouts
blog-detail.html
blog.html
36:62 (56%)
76:102 (30%)
view
19 x 2 amplify-theme/_sass/components
amplify-theme/_sass/components
_hero-subheader.scss
_redesign.scss
47:73 (31%)
1305:1331 (<1%)
view
19 x 2 amplify-theme/_sass/components
amplify-theme/_sass/components
_callout.scss
_callout.scss
56:79 (16%)
130:153 (16%)
view
13 x 2 amplify-theme/_sass/components
amplify-theme/_sass/components
_callout.scss
_callout.scss
37:52 (11%)
115:130 (11%)
view