aws-samples / deploy-python-flask-microservices-to-aws-using-open-source-tools
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:
    • 643 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 73 duplicated lines
  • 7 duplicates
system11% (73 lines)
Duplication per Extension
tf12% (73 lines)
Duplication per Component (primary)
terraform12% (73 lines)
app0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
8 x 2 terraform
terraform
main.tf
main.tf
26:33 (1%)
105:112 (1%)
view
7 x 2 terraform
terraform
main.tf
main.tf
58:64 (1%)
105:111 (1%)
view
7 x 2 terraform
terraform
main.tf
main.tf
11:18 (1%)
41:48 (1%)
view
7 x 2 terraform
terraform
main.tf
main.tf
26:32 (1%)
58:64 (1%)
view
6 x 2 terraform
terraform
main.tf
main.tf
512:518 (1%)
531:537 (1%)
view
6 x 2 terraform
terraform
main.tf
main.tf
293:299 (1%)
318:324 (1%)
view
6 x 2 terraform
terraform
main.tf
main.tf
520:526 (1%)
539:545 (1%)
view