aws-samples / aws-ecs-springboot-opentelemetry-sample
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
  • 35% duplication:
    • 762 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 270 duplicated lines
  • 12 duplicates
system35% (270 lines)
Duplication per Extension
yaml38% (246 lines)
yml19% (24 lines)
Duplication per Component (primary)
templates32% (193 lines)
ROOT44% (77 lines)
src/main/resources0% (0 lines)

Duplication Between Components (50+ lines)

G ROOT ROOT templates templates ROOT--templates 106

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
53 x 2 ROOT
templates
aot-config.yaml
otel-service.yaml
1:57 (100%)
48:104 (22%)
view
13 x 2 templates
templates
otel-service.yaml
service.yaml
186:199 (5%)
61:74 (12%)
view
13 x 2 templates
templates
otel-service.yaml
service.yaml
128:140 (5%)
47:59 (12%)
view
10 x 2 templates
templates
otel-service.yaml
service.yaml
153:162 (4%)
48:57 (9%)
view
10 x 2 templates
templates
otel-service.yaml
otel-service.yaml
129:138 (4%)
153:162 (4%)
view
10 x 2 templates
templates
otel-service.yaml
service.yaml
224:233 (4%)
88:97 (9%)
view
9 x 2 templates
templates
otel-service.yaml
service.yaml
247:257 (3%)
112:122 (8%)
view
7 x 2 templates
templates
load-balancer.yaml
service.yaml
11:19 (9%)
32:40 (6%)
view
7 x 2 templates
templates
otel-service.yaml
otel-service.yaml
141:147 (3%)
163:169 (3%)
view
6 x 2 templates
templates
otel-service.yaml
service.yaml
200:205 (2%)
76:81 (5%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
119:124 (4%)
137:142 (4%)
view
6 x 2 ROOT
ROOT
template.yml
template.yml
67:72 (4%)
75:80 (4%)
view