aws-samples / aws-ecs-cicd-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
  • 7% duplication:
    • 1,414 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 105 duplicated lines
  • 12 duplicates
system7% (105 lines)
Duplication per Extension
tf12% (89 lines)
html5% (16 lines)
Duplication per Component (primary)
terraform11% (89 lines)
petclinic/src/main/resources/templates/fragments16% (16 lines)
ROOT0% (0 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 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
8 x 2 terraform
terraform
codebuild.tf
codepipeline.tf
18:25 (6%)
18:25 (5%)
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
8 x 2 terraform
terraform
security-groups.tf
security-groups.tf
16:24 (12%)
77:86 (12%)
view
7 x 2 terraform
terraform
codecommit.tf
codepipeline.tf
17:23 (10%)
10:16 (5%)
view
7 x 2 terraform
terraform
codebuild.tf
codepipeline.tf
10:16 (5%)
10:16 (5%)
view
7 x 2 terraform
terraform
codebuild.tf
codecommit.tf
10:16 (5%)
17:23 (10%)
view
6 x 2 terraform
terraform
codebuild.tf
codepipeline.tf
29:34 (4%)
29:34 (4%)
view
6 x 2 terraform
terraform
codepipeline.tf
codepipeline.tf
46:51 (4%)
53:58 (4%)
view
6 x 2 terraform
terraform
codecommit.tf
codepipeline.tf
37:42 (8%)
29:34 (4%)
view
6 x 2 terraform
terraform
codecommit.tf
codepipeline.tf
28:33 (8%)
20:25 (4%)
view
6 x 2 terraform
terraform
codebuild.tf
codecommit.tf
29:34 (4%)
37:42 (8%)
view
6 x 2 terraform
terraform
codebuild.tf
codecommit.tf
20:25 (4%)
28:33 (8%)
view