aws-samples / amazon-eks-bottlerocket-mngnodegrp-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:
    • 695 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 45 duplicated lines
  • 6 duplicates
system6% (45 lines)
Duplication per Extension
yaml19% (24 lines)
tf3% (21 lines)
Duplication per Component (primary)
sample-application19% (24 lines)
ROOT3% (21 lines)
templates0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
8 x 2 sample-application
sample-application
ecsdemo-crystal.deployment.yaml
ecsdemo-frontend.deployment.yaml
13:20 (27%)
13:20 (23%)
view
8 x 2 sample-application
sample-application
ecsdemo-frontend.deployment.yaml
ecsdemo-nodejs.deployment.yaml
13:20 (23%)
13:20 (27%)
view
8 x 2 sample-application
sample-application
ecsdemo-crystal.deployment.yaml
ecsdemo-nodejs.deployment.yaml
13:20 (27%)
13:20 (27%)
view
7 x 2 ROOT
ROOT
subnets.tf
subnets.tf
17:24 (11%)
47:54 (11%)
view
7 x 2 ROOT
ROOT
subnets.tf
vpc.tf
47:54 (11%)
6:13 (16%)
view
7 x 2 ROOT
ROOT
subnets.tf
vpc.tf
17:24 (11%)
6:13 (16%)
view