aws-samples / runtime-security-with-falco-on-aws
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
  • 16% duplication:
    • 4,973 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 819 duplicated lines
  • 56 duplicates
system16% (819 lines)
Duplication per Extension
css25% (663 lines)
yaml11% (116 lines)
html5% (40 lines)
Duplication per Component (primary)
themes/hugo-theme-learn/static21% (507 lines)
themes/hugo-theme-learn/exampleSite33% (84 lines)
static/css56% (72 lines)
code-samples/cloudformation26% (58 lines)
themes/hugo-theme-learn/layouts6% (40 lines)
pipeline/webhosting12% (40 lines)
code-samples/cloudformation/master-stacks66% (18 lines)
ROOT0% (0 lines)
code-samples/codebuild0% (0 lines)
code-samples0% (0 lines)
code-samples/cloudformation/vpc0% (0 lines)
code-samples/cloudformation/ee0% (0 lines)
code-samples/cloudformation/iam0% (0 lines)
layouts/partials0% (0 lines)
themes/hugo-theme-learn0% (0 lines)
themes/hugo-theme-learn/i18n0% (0 lines)

Duplication Between Components (50+ lines)

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

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 56 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
43 x 2 static/css
themes/hugo-theme-learn/exampleSite/static/css
theme-mine.css
theme-mine.css
85:132 (33%)
56:103 (51%)
view
43 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-red.css
85:132 (33%)
59:106 (41%)
view
43 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-green.css
85:132 (33%)
59:106 (41%)
view
43 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-blue.css
85:132 (33%)
59:106 (41%)
view
29 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-blue.css
19:56 (22%)
22:59 (28%)
view
23 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-green.css
27:56 (18%)
30:59 (22%)
view
23 x 2 static/css
themes/hugo-theme-learn/static/css
theme-mine.css
theme-red.css
27:56 (18%)
30:59 (22%)
view
23 x 2 static/css
themes/hugo-theme-learn/exampleSite/static/css
theme-mine.css
theme-mine.css
27:56 (18%)
27:56 (27%)
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
9 x 2 code-samples/cloudformation/master-stacks
code-samples/cloudformation/master-stacks
vpc-cloud9.yaml
vpc-only.yaml
14:25 (52%)
14:25 (90%)
view
9 x 2 code-samples/cloudformation
code-samples/cloudformation
vpc.yaml
vpc.yaml
97:105 (4%)
131:139 (4%)
view
8 x 2 pipeline/webhosting
pipeline/webhosting
pipeline.yaml
pipeline.yaml
36:43 (3%)
80:87 (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