aws-samples / aws-code-suite-for-atlassian-connect
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
  • 28% duplication:
    • 5,311 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,506 duplicated lines
  • 89 duplicates
system28% (1,506 lines)
Duplication per Extension
css34% (1,126 lines)
html28% (199 lines)
yaml15% (84 lines)
java16% (63 lines)
yml32% (34 lines)
Duplication per Component (primary)
themes/learn30% (1,178 lines)
layouts/partials78% (75 lines)
static/css58% (72 lines)
content/30_containerize-app15% (63 lines)
content/60_pipeline18% (48 lines)
content/40_ecr62% (20 lines)
lambda-functions/get-commit-id17% (17 lines)
lambda-functions/get-execution-id20% (17 lines)
content/50_ecs5% (16 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G static/css static/css themes/learn themes/learn static/css--themes/learn 344 layouts/partials layouts/partials layouts/partials--themes/learn 150

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 89 duplicates...
Size#FoldersFilesLinesCode
84 x 2 themes/learn/exampleSite/static/css
themes/learn/static/css
theme-mine.css
theme-green.css
2:103 (100%)
2:103 (100%)
view
68 x 2 layouts/partials
themes/learn/layouts/partials
header.html
header.html
19:100 (80%)
14:95 (85%)
view
65 x 2 themes/learn/exampleSite/static/css
themes/learn/static/css
theme-mine.css
theme-red.css
27:103 (77%)
27:103 (77%)
view
65 x 2 themes/learn/static/css
themes/learn/static/css
theme-blue.css
theme-green.css
27:103 (77%)
27:103 (77%)
view
65 x 2 themes/learn/exampleSite/static/css
themes/learn/static/css
theme-mine.css
theme-blue.css
27:103 (77%)
27:103 (77%)
view
65 x 2 themes/learn/static/css
themes/learn/static/css
theme-blue.css
theme-red.css
27:103 (77%)
27:103 (77%)
view
65 x 2 themes/learn/static/css
themes/learn/static/css
theme-green.css
theme-red.css
27:103 (77%)
27:103 (77%)
view
63 x 2 themes/learn/static/mermaid
themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
101:168 (24%)
103:170 (18%)
view
43 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-blue.css
85:132 (34%)
56:103 (51%)
view
43 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-red.css
85:132 (34%)
56:103 (51%)
view
43 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-green.css
85:132 (34%)
56:103 (51%)
view
43 x 2 static/css
themes/learn/exampleSite/static/css
theme-mine.css
theme-mine.css
85:132 (34%)
56:103 (51%)
view
34 x 2 themes/learn/static/mermaid
themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
187:222 (13%)
189:224 (10%)
view
31 x 2 themes/learn/static/mermaid
themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
33:63 (12%)
35:65 (9%)
view
29 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-blue.css
19:56 (23%)
19:56 (34%)
view
29 x 2 themes/learn/static/mermaid
themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
224:252 (11%)
226:254 (8%)
view
23 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-green.css
27:56 (18%)
27:56 (27%)
view
23 x 2 static/css
themes/learn/static/css
theme-mine.css
theme-red.css
27:56 (18%)
27:56 (27%)
view
23 x 2 static/css
themes/learn/exampleSite/static/css
theme-mine.css
theme-mine.css
27:56 (18%)
27:56 (27%)
view
17 x 2 lambda-functions/get-commit-id
lambda-functions/get-execution-id
template.yml
template.yml
1:17 (68%)
1:17 (60%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
7 x 2 content/30_containerize-...jsw/sample/dataprovider
content/30_containerize-...jsw/sample/dataprovider
RelayDeploymentsController.java
RelayFeatureflagsController.java
35:44 
35:44 
view
7 x 2 content/30_containerize-...jsw/sample/dataprovider
content/30_containerize-...jsw/sample/dataprovider
RelayDeploymentsController.java
RelayFeatureflagsController.java
47:56 
47:56 
view