GerritCodeReview / gerrit-monitoring
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
  • 22% duplication:
    • 2,444 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 558 duplicated lines
  • 139 duplicates
system22% (558 lines)
Duplication per Extension
jsonnet40% (282 lines)
yaml20% (276 lines)
Duplication per Component (primary)
dashboards/gerrit40% (282 lines)
charts/prometheus23% (133 lines)
charts/promtail46% (99 lines)
promtail35% (30 lines)
charts/grafana4% (14 lines)
subcommands0% (0 lines)
ROOT0% (0 lines)
cfgmgr0% (0 lines)
charts0% (0 lines)
charts/loki0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 139 duplicates...
Size#FoldersFilesLinesCode
26 x 2 charts/promtail
charts/promtail
promtail.yaml
promtail.yaml
89:114 (12%)
140:165 (12%)
view
18 x 2 charts/promtail
charts/promtail
promtail.yaml
promtail.yaml
115:132 (8%)
170:187 (8%)
view
15 x 2 charts/prometheus
charts/prometheus
prometheus.yaml
prometheus.yaml
304:329 (2%)
935:955 (2%)
view
12 x 2 charts/prometheus
charts/prometheus
prometheus.yaml
prometheus.yaml
250:283 (2%)
858:891 (2%)
view
12 x 2 dashboards/gerrit/latency
dashboards/gerrit/latency
gerrit-push-latency.jsonnet
gerrit-rest-api-latency.jsonnet
1:15 (26%)
1:15 (18%)
view
12 x 2 dashboards/gerrit/healthcheck
dashboards/gerrit/replication
gerrit-healthcheck.jsonnet
gerrit-replication.jsonnet
27:38 (17%)
17:28 (20%)
view
12 x 2 dashboards/gerrit/healthcheck
dashboards/gerrit/latency
gerrit-healthcheck.jsonnet
gerrit-rest-api-latency.jsonnet
27:38 (17%)
17:28 (18%)
view
12 x 2 dashboards/gerrit/latency
dashboards/gerrit/latency
gerrit-rest-api-latency.jsonnet
gerrit-ui-actions-latency.jsonnet
1:15 (18%)
1:15 (25%)
view
12 x 2 dashboards/gerrit/latency
dashboards/gerrit/latency
gerrit-rest-api-latency.jsonnet
gerrit-ui-actions-latency.jsonnet
17:28 (18%)
17:28 (25%)
view
12 x 2 dashboards/gerrit/healthcheck
dashboards/gerrit/latency
gerrit-healthcheck.jsonnet
gerrit-ui-actions-latency.jsonnet
27:38 (17%)
17:28 (25%)
view
12 x 2 dashboards/gerrit/latency
dashboards/gerrit/replication
gerrit-ui-actions-latency.jsonnet
gerrit-replication.jsonnet
17:28 (25%)
17:28 (20%)
view
12 x 2 promtail
promtail
promtailLocalConfig.yaml
promtailLocalConfig.yaml
60:71 (14%)
79:90 (14%)
view
12 x 2 dashboards/gerrit/latency
dashboards/gerrit/replication
gerrit-rest-api-latency.jsonnet
gerrit-replication.jsonnet
17:28 (18%)
17:28 (20%)
view
12 x 2 dashboards/gerrit/latency
dashboards/gerrit/latency
gerrit-push-latency.jsonnet
gerrit-ui-actions-latency.jsonnet
1:15 (26%)
1:15 (25%)
view
11 x 2 dashboards/gerrit/caches
dashboards/gerrit/queues
gerrit-caches.jsonnet
gerrit-queues.jsonnet
21:31 (21%)
24:34 (16%)
view
11 x 2 dashboards/gerrit/latency
dashboards/gerrit/latency
gerrit-notedb-latency.jsonnet
gerrit-push-latency.jsonnet
1:13 (25%)
1:13 (24%)
view
11 x 2 dashboards/gerrit/caches
dashboards/gerrit/overview
gerrit-caches.jsonnet
gerrit-overview.jsonnet
21:31 (21%)
27:37 (9%)
view
11 x 2 dashboards/gerrit/latency
dashboards/gerrit/process
gerrit-push-latency.jsonnet
gerrit-process.jsonnet
17:27 (24%)
22:32 (19%)
view
11 x 2 dashboards/gerrit/latency
dashboards/gerrit/latency
gerrit-query-latency.jsonnet
gerrit-ui-actions-latency.jsonnet
1:13 (28%)
1:13 (22%)
view
11 x 2 dashboards/gerrit/fetch-clone
dashboards/gerrit/latency
gerrit-fetch-clone.jsonnet
gerrit-push-latency.jsonnet
17:27 (27%)
17:27 (24%)
view