aws-samples / aws-health-aware
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
  • 43% duplication:
    • 2,809 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,217 duplicated lines
  • 141 duplicates
system43% (1,217 lines)
Duplication per Extension
py63% (832 lines)
tf40% (309 lines)
yml10% (76 lines)
Duplication per Component (primary)
ROOT45% (908 lines)
terraform/Terraform_DEPLOY_AHA36% (261 lines)
terraform/Terraform_MGMT_ROLE47% (48 lines)

Duplication Between Components (50+ lines)

G terraform/Terraform_DEPLOY_AHA terraform/Terraform_DEPLOY_AHA terraform/Terraform_MGMT_ROLE terraform/Terraform_MGMT_ROLE terraform/Terraform_DEPLOY_AHA--terraform/Terraform_MGMT_ROLE 67

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 141 duplicates...
Size#FoldersFilesLinesCode
29 x 2 ROOT
ROOT
handler.py
handler.py
358:392 (3%)
439:474 (3%)
view
22 x 2 terraform/Terraform_DEPLOY_AHA
terraform/Terraform_DEPLOY_AHA
Terraform_DEPLOY_AHA.tf
Terraform_DEPLOY_AHA.tf
646:670 (3%)
693:717 (3%)
view
21 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
36:57 (3%)
246:267 (3%)
view
18 x 2 ROOT
ROOT
handler.py
handler.py
468:487 (2%)
494:513 (2%)
view
18 x 2 ROOT
ROOT
handler.py
handler.py
386:406 (2%)
413:432 (2%)
view
18 x 2 ROOT
ROOT
handler.py
handler.py
233:250 (2%)
260:277 (2%)
view
15 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
453:468 (2%)
522:537 (2%)
view
15 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
138:153 (2%)
187:202 (2%)
view
14 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
202:215 (2%)
267:280 (2%)
view
14 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
184:198 (2%)
243:257 (2%)
view
14 x 2 terraform/Terraform_DEPLOY_AHA
terraform/Terraform_DEPLOY_AHA
Terraform_DEPLOY_AHA.tf
Terraform_DEPLOY_AHA.tf
672:687 (2%)
719:734 (2%)
view
14 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
57:70 (2%)
153:166 (2%)
view
14 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
91:105 (2%)
299:313 (2%)
view
14 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
33:47 (2%)
135:149 (2%)
view
13 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
329:341 (2%)
419:431 (2%)
view
12 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
60:71 (2%)
270:281 (2%)
view
12 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
86:97 (2%)
103:114 (2%)
view
12 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
294:305 (2%)
311:322 (2%)
view
11 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
13:23 (1%)
559:569 (1%)
view
11 x 2 ROOT
ROOT
messagegenerator.py
messagegenerator.py
508:518 (1%)
535:545 (1%)
view