aws-samples / aws-modernization-with-immuta
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
  • 17% duplication:
    • 3,907 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 665 duplicated lines
  • 33 duplicates
system17% (665 lines)
Duplication per Extension
css23% (585 lines)
html6% (40 lines)
yaml12% (40 lines)
Duplication per Component (primary)
themes/hugo-theme-learn/static/css21% (501 lines)
themes/hugo-theme-learn/exampleSite/static100% (84 lines)
pipeline/webhosting12% (40 lines)
themes/hugo-theme-learn/layouts/shortcodes15% (28 lines)
themes/hugo-theme-learn/layouts/partials1% (6 lines)
themes/hugo-theme-learn/layouts9% (6 lines)
ROOT0% (0 lines)
layouts/partials0% (0 lines)
themes/hugo-theme-learn0% (0 lines)
themes/hugo-theme-learn/exampleSite0% (0 lines)
themes/hugo-theme-learn/exampleSite/layouts0% (0 lines)
themes/hugo-theme-learn/layouts/_default0% (0 lines)
themes/hugo-theme-learn/i18n0% (0 lines)

Duplication Between Components (50+ lines)

G themes/hugo-theme-learn/exampleSite/static themes/hugo-theme-learn/exampleSite/static themes/hugo-theme-learn/static/css themes/hugo-theme-learn/static/css themes/hugo-theme-learn/exampleSite/static--themes/hugo-theme-learn/static/css 304

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 33 duplicates...
Size#FoldersFilesLinesCode
82 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-blue.css
theme-red.css
30:128 (79%)
30:128 (79%)
view
82 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-blue.css
theme-green.css
30:128 (79%)
30:128 (79%)
view
82 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme-green.css
theme-red.css
30:128 (79%)
30:128 (79%)
view
78 x 2 themes/hugo-theme-learn/exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-green.css
10:103 (92%)
13:106 (75%)
view
65 x 2 themes/hugo-theme-learn/exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-blue.css
27:103 (77%)
30:106 (63%)
view
65 x 2 themes/hugo-theme-learn/exampleSite/static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-red.css
27:103 (77%)
30:106 (63%)
view
14 x 2 themes/hugo-theme-learn/layouts/shortcodes
themes/hugo-theme-learn/layouts/shortcodes
ref.html
relref.html
1:14 (100%)
1:14 (100%)
view
8 x 2 pipeline/webhosting
pipeline/webhosting
pipeline.yaml
pipeline.yaml
38:45 (3%)
82:89 (3%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
296:302 (1%)
396:402 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
323:329 (1%)
423:429 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
305:311 (1%)
405:411 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
228:234 (1%)
242:248 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
332:338 (1%)
432:438 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
theme.css
theme.css
488:494 (<1%)
555:561 (<1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
287:293 (1%)
387:393 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
278:284 (1%)
378:384 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
269:275 (1%)
369:375 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
260:266 (1%)
360:366 (1%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
atom-one-dark-reasonable.css
hybrid.css
68:74 (10%)
94:102 (9%)
view
7 x 2 themes/hugo-theme-learn/static/css
themes/hugo-theme-learn/static/css
nucleus.css
nucleus.css
251:257 (1%)
351:357 (1%)
view