microsoft / mssql-docker
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
  • 50% duplication:
    • 799 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 406 duplicated lines
  • 19 duplicates
system50% (406 lines)
Duplication per Extension
ps180% (164 lines)
yaml38% (158 lines)
tpl48% (58 lines)
php81% (26 lines)
Duplication per Component (primary)
linux/sample-helm-chart-statefulset-deployment47% (124 lines)
linux/sample-helm-chart33% (92 lines)
windows/mssql-server-windows-developer100% (60 lines)
windows/mssql-server-windows68% (52 lines)
windows/mssql-server-windows-express85% (52 lines)
oss-drivers/msphpsql100% (13 lines)
oss-drivers/php-mssql68% (13 lines)
ROOT0% (0 lines)
oss-drivers/pyodbc0% (0 lines)
oss-drivers/tedious0% (0 lines)
windows0% (0 lines)

Duplication Between Components (50+ lines)

G linux/sample-helm-chart-statefulset-deployment linux/sample-helm-chart-statefulset-deployment linux/sample-helm-chart linux/sample-helm-chart linux/sample-helm-chart-statefulset-deployment--linux/sample-helm-chart 184 windows/mssql-server-windows-developer windows/mssql-server-windows-developer windows/mssql-server-windows windows/mssql-server-windows windows/mssql-server-windows-developer--windows/mssql-server-windows 104 windows/mssql-server-windows-express windows/mssql-server-windows-express windows/mssql-server-windows-developer--windows/mssql-server-windows-express 104 windows/mssql-server-windows-express--windows/mssql-server-windows 88

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
40 x 2 windows/mssql-server-windows-developer
windows/mssql-server-windows
start.ps1
start.ps1
1:53 (66%)
1:53 (52%)
view
38 x 2 windows/mssql-server-windows-developer
windows/mssql-server-windows-express
start.ps1
start.ps1
31:77 (63%)
32:78 (62%)
view
22 x 2 linux/sample-helm-chart-...et-deployment/templates
linux/sample-helm-chart/templates
deployment.yaml
deployment.yaml
22:43 (34%)
22:43 (30%)
view
18 x 2 windows/mssql-server-windows-express
windows/mssql-server-windows
start.ps1
start.ps1
32:54 (29%)
31:53 (23%)
view
14 x 2 linux/sample-helm-chart-...et-deployment/templates
linux/sample-helm-chart/templates
tpl
_helpers.tpl
_helpers.tpl
14:28 (24%)
14:28 (22%)
view
14 x 2 windows/mssql-server-windows-express
windows/mssql-server-windows
start.ps1
start.ps1
2:20 (22%)
2:20 (18%)
view
14 x 2 windows/mssql-server-windows-developer
windows/mssql-server-windows-express
start.ps1
start.ps1
2:20 (23%)
2:20 (22%)
view
13 x 2 oss-drivers/msphpsql
oss-drivers/php-mssql
sample.php
connect.php
2:16 (100%)
2:16 (68%)
view
12 x 2 windows/mssql-server-windows-express
windows/mssql-server-windows
start.ps1
start.ps1
65:78 (19%)
83:96 (15%)
view
12 x 2 windows/mssql-server-windows-developer
windows/mssql-server-windows
start.ps1
start.ps1
64:77 (20%)
83:96 (15%)
view
12 x 2 linux/sample-helm-chart-...et-deployment/templates
linux/sample-helm-chart/templates
mssqlconfig.yaml
mssqlconfig.yaml
5:19 (75%)
5:19 (63%)
view
9 x 2 linux/sample-helm-chart-statefulset-deployment
linux/sample-helm-chart
values.yaml
values.yaml
7:17 (47%)
7:17 (28%)
view
8 x 2 linux/sample-helm-chart-...set-deployment/services
linux/sample-helm-chart-...set-deployment/services
ex_service.yaml
ex_service.yaml
10:17 (19%)
24:31 (19%)
view
8 x 2 linux/sample-helm-chart-...et-deployment/templates
linux/sample-helm-chart/templates
tpl
_helpers.tpl
_helpers.tpl
39:47 (14%)
39:47 (12%)
view
8 x 2 linux/sample-helm-chart-...set-deployment/services
linux/sample-helm-chart-...set-deployment/services
Ag_endpoint.yaml
Ag_endpoint.yaml
8:15 (22%)
20:27 (22%)
view
7 x 2 linux/sample-helm-chart-...et-deployment/templates
linux/sample-helm-chart/templates
deployment.yaml
deployment.yaml
13:19 (11%)
12:18 (9%)
view
7 x 2 linux/sample-helm-chart-statefulset-deployment
linux/sample-helm-chart
values.yaml
values.yaml
20:29 (36%)
21:30 (21%)
view
7 x 2 linux/sample-helm-chart-...et-deployment/templates
linux/sample-helm-chart/templates
tpl
_helpers.tpl
_helpers.tpl
5:12 (12%)
5:12 (11%)
view
6 x 2 linux/sample-helm-chart-...et-deployment/templates
linux/sample-helm-chart/templates
sc.yaml
pvc.yaml
3:8 (75%)
3:8 (10%)
view