aws-samples / aws-apprunner-terraform
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
  • 6% duplication:
    • 1,332 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 89 duplicated lines
  • 11 duplicates
system6% (89 lines)
Duplication per Extension
tf10% (73 lines)
html5% (16 lines)
Duplication per Component (primary)
terraform10% (73 lines)
petclinic/src/main/resources/templates/fragments16% (16 lines)
petclinic/src/main/resources/templates/pets0% (0 lines)
petclinic/src/main/resources/templates/vets0% (0 lines)
petclinic/src/main/resources/templates0% (0 lines)
petclinic/src/main/resources/templates/owners0% (0 lines)
petclinic/src/main/less0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
8 x 2 terraform
terraform
codebuild.tf
codepipeline.tf
18:25 (5%)
17:24 (6%)
view
8 x 2 petclinic/src/main/resources/templates/fragments
petclinic/src/main/resources/templates/fragments
inputField.html
selectField.html
16:23 (36%)
15:22 (40%)
view
7 x 2 terraform
terraform
codecommit.tf
codepipeline.tf
16:22 (10%)
9:15 (5%)
view
7 x 2 terraform
terraform
codebuild.tf
codepipeline.tf
10:16 (4%)
9:15 (5%)
view
7 x 2 terraform
terraform
codebuild.tf
codecommit.tf
10:16 (4%)
16:22 (10%)
view
6 x 2 terraform
terraform
codebuild.tf
codepipeline.tf
29:34 (4%)
28:33 (5%)
view
6 x 2 terraform
terraform
codepipeline.tf
codepipeline.tf
45:50 (5%)
52:57 (5%)
view
6 x 2 terraform
terraform
codecommit.tf
codepipeline.tf
36:41 (8%)
28:33 (5%)
view
6 x 2 terraform
terraform
codebuild.tf
codecommit.tf
29:34 (4%)
36:41 (8%)
view
6 x 2 terraform
terraform
codecommit.tf
codepipeline.tf
27:32 (8%)
19:24 (5%)
view
6 x 2 terraform
terraform
codebuild.tf
codecommit.tf
20:25 (4%)
27:32 (8%)
view