microsoft / fhir-server-samples
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
  • 23% duplication:
    • 1,358 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 313 duplicated lines
  • 33 duplicates
system23% (313 lines)
Duplication per Extension
ps136% (215 lines)
js17% (80 lines)
yml17% (18 lines)
Duplication per Component (primary)
deploy/scripts36% (215 lines)
src/FhirDashboardJS/js17% (80 lines)
ROOT17% (18 lines)
src/FhirDashboardJS0% (0 lines)
src/FhirImporter0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 33 duplicates...
Size#FoldersFilesLinesCode
35 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Create-FhirServerSamplesEnvironment.ps1
83:122 (15%)
109:147 (18%)
view
16 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Delete-FhirServerSamplesEnvironment.ps1
40:58 (7%)
11:29 (51%)
view
14 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Delete-FhirServerSamplesAuthConfig.ps1
58:72 (6%)
33:47 (18%)
view
14 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesEnvironment.ps1
Delete-FhirServerSamplesEnvironment.ps1
95:109 (7%)
15:29 (45%)
view
14 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Create-FhirServerSamplesEnvironment.ps1
44:58 (6%)
95:109 (7%)
view
13 x 2 src/FhirDashboardJS/js
src/FhirDashboardJS/js
PatientModule.js
PatientModule.js
79:91 (4%)
109:121 (4%)
view
12 x 2 src/FhirDashboardJS/js
src/FhirDashboardJS/js
PatientModule.js
PatientModule.js
52:64 (3%)
82:94 (3%)
view
10 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Create-FhirServerSamplesEnvironment.ps1
13:23 (4%)
12:22 (5%)
view
10 x 2 src/FhirDashboardJS/js
src/FhirDashboardJS/js
PatientModule.js
PatientModule.js
52:61 (3%)
112:121 (3%)
view
9 x 2 deploy/scripts
deploy/scripts
Delete-FhirServerSamplesAuthConfig.ps1
Delete-FhirServerSamplesEnvironment.ps1
23:33 (12%)
11:21 (29%)
view
9 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Delete-FhirServerSamplesAuthConfig.ps1
40:50 (4%)
23:33 (12%)
view
9 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
28:36 (8%)
97:105 (8%)
view
8 x 2 deploy/scripts
deploy/scripts
Delete-FhirServerSamplesAuthConfig.ps1
Set-TestEnvironmentVariables.ps1
4:12 (10%)
4:12 (11%)
view
8 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Create-FhirServerSamplesEnvironment.ps1
4:11 (3%)
4:11 (4%)
view
7 x 2 src/FhirDashboardJS/js
src/FhirDashboardJS/js
PatientModule.js
PatientModule.js
112:118 (2%)
370:376 (2%)
view
7 x 2 src/FhirDashboardJS/js
src/FhirDashboardJS/js
PatientModule.js
PatientModule.js
52:58 (2%)
370:376 (2%)
view
7 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesAuthConfig.ps1
Set-TestEnvironmentVariables.ps1
52:58 (3%)
18:24 (10%)
view
7 x 2 src/FhirDashboardJS/js
src/FhirDashboardJS/js
PatientModule.js
PatientModule.js
158:165 (2%)
185:192 (2%)
view
7 x 2 deploy/scripts
deploy/scripts
Create-FhirServerSamplesEnvironment.ps1
Set-TestEnvironmentVariables.ps1
103:109 (3%)
18:24 (10%)
view
7 x 2 src/FhirDashboardJS/js
src/FhirDashboardJS/js
PatientModule.js
ResourceModule.js
185:192 (2%)
15:23 (20%)
view