aws-observability / aws-otel-playground
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
  • 8% duplication:
    • 1,131 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 95 duplicated lines
  • 11 duplicates
system8% (95 lines)
Duplication per Extension
tf12% (95 lines)
Duplication per Component (primary)
scripts12% (95 lines)
backend-webflux0% (0 lines)
api0% (0 lines)
dependencyManagement0% (0 lines)
ROOT0% (0 lines)
frontend0% (0 lines)
lambda-api0% (0 lines)
backend0% (0 lines)
otel0% (0 lines)
appdb0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
11 x 2 scripts/terraform
scripts/terraform
network.tf
network.tf
39:50 (10%)
62:73 (10%)
view
11 x 2 scripts/terraform
scripts/terraform
ecs.tf
ecs.tf
95:105 (5%)
119:129 (5%)
view
9 x 2 scripts/terraform
scripts/terraform
ecs.tf
ecs.tf
67:75 (4%)
93:101 (4%)
view
7 x 2 scripts/terraform
scripts/terraform
api-gateway.tf
ecs.tf
2:9 (6%)
2:9 (3%)
view
7 x 2 scripts/terraform
scripts/terraform
ecs.tf
eks.tf
2:9 (3%)
17:24 (2%)
view
7 x 2 scripts/terraform
scripts/terraform
ecs.tf
eks.tf
2:9 (3%)
2:9 (2%)
view
7 x 2 scripts/terraform
scripts/terraform
ecs.tf
ecs.tf
69:75 (3%)
119:125 (3%)
view
7 x 2 scripts/terraform
scripts/terraform
api-gateway.tf
eks.tf
2:9 (6%)
2:9 (2%)
view
7 x 2 scripts/terraform
scripts/terraform
api-gateway.tf
eks.tf
2:9 (6%)
17:24 (2%)
view
7 x 2 scripts/terraform
scripts/terraform
eks.tf
eks.tf
2:9 (2%)
17:24 (2%)
view
6 x 2 scripts/terraform
scripts/terraform
eks.tf
eks.tf
307:312 (1%)
370:376 (1%)
view