aws-quickstart / quickstart-eks-gitlab
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
  • 25% duplication:
    • 3,719 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 933 duplicated lines
  • 167 duplicates
system25% (933 lines)
Duplication per Extension
yaml26% (921 lines)
py4% (12 lines)
Duplication per Component (primary)
templates/workload26% (921 lines)
functions/source/SmtpPasswordGenerator18% (6 lines)
functions/source/CreateDatabase17% (6 lines)
functions/source/CleanupACMDNSValidation0% (0 lines)
functions/source/UpdateDnsRecord0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 167 duplicates...
Size#FoldersFilesLinesCode
33 x 2 templates/workload
templates/workload
gitlab-gitaly-template.yaml
gitlab-praefect-template.yaml
90:129 (8%)
142:175 (9%)
view
17 x 2 templates/workload
templates/workload
gitlab-gitaly-template.yaml
gitlab-praefect-template.yaml
215:235 (4%)
252:272 (5%)
view
16 x 2 templates/workload
templates/workload
gitlab-secrets-template.yaml
gitlab-secrets-template.yaml
204:220 (6%)
250:266 (6%)
view
16 x 2 templates/workload
templates/workload
gitlab-secrets-template.yaml
gitlab-secrets-template.yaml
227:243 (6%)
250:266 (6%)
view
16 x 2 templates/workload
templates/workload
gitlab-secrets-template.yaml
gitlab-secrets-template.yaml
204:220 (6%)
227:243 (6%)
view
15 x 2 templates/workload
templates/workload
gitlab-secrets-template.yaml
gitlab-secrets-template.yaml
104:118 (5%)
183:197 (5%)
view
12 x 2 templates/workload
templates/workload
gitlab-database-template.yaml
gitlab-template.yaml
53:64 (9%)
75:86 (2%)
view
12 x 2 templates/workload
templates/workload
gitlab-storage-template.yaml
gitlab-storage-template.yaml
181:192 (3%)
219:230 (3%)
view
11 x 2 templates/workload
templates/workload
gitlab-functions-template.yaml
gitlab-infra-template.yaml
113:123 (9%)
287:298 (3%)
view
11 x 2 templates/workload
templates/workload
gitlab-functions-template.yaml
gitlab-infra-template.yaml
113:123 (9%)
151:162 (3%)
view
11 x 2 templates/workload
templates/workload
gitlab-infra-template.yaml
gitlab-infra-template.yaml
151:162 (3%)
287:298 (3%)
view
11 x 2 templates/workload
templates/workload
gitlab-telemetry-template.yaml
gitlab-telemetry-template.yaml
515:525 (1%)
673:683 (1%)
view
11 x 2 templates/workload
templates/workload
gitlab-cache-template.yaml
gitlab-infra-template.yaml
4:16 (15%)
4:15 (3%)
view
10 x 2 templates/workload
templates/workload
gitlab-storage-template.yaml
gitlab-storage-template.yaml
195:204 (3%)
232:241 (3%)
view
10 x 2 templates/workload
templates/workload
gitlab-infra-template.yaml
gitlab-infra-template.yaml
73:82 (3%)
96:105 (3%)
view
9 x 2 templates/workload
templates/workload
gitlab-secrets-template.yaml
gitlab-secrets-template.yaml
102:111 (3%)
227:236 (3%)
view
9 x 2 templates/workload
templates/workload
gitlab-runner-template.yaml
gitlab-template.yaml
6:15 (14%)
4:13 (1%)
view
9 x 2 templates/workload
templates/workload
gitlab-functions-template.yaml
gitlab-infra-template.yaml
4:13 (7%)
4:13 (2%)
view
9 x 2 templates/workload
templates/workload
gitlab-secrets-template.yaml
gitlab-secrets-template.yaml
102:111 (3%)
250:259 (3%)
view
9 x 2 templates/workload
templates/workload
gitlab-secrets-template.yaml
gitlab-secrets-template.yaml
102:111 (3%)
125:134 (3%)
view