awslabs / fhir-works-on-aws-interface
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
  • 45% duplication:
    • 2,413 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,091 duplicated lines
  • 497 duplicates
system45% (1,091 lines)
Duplication per Extension
yaml70% (682 lines)
ts28% (409 lines)
Duplication per Component (primary)
ROOT69% (682 lines)
src30% (409 lines)
src/errors0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 497 duplicates...
Size#FoldersFilesLinesCode
85 x 2 src
src
constants.ts
stubs.ts
247:331 (14%)
71:155 (35%)
view
45 x 2 src
src
constants.ts
stubs.ts
333:377 (7%)
157:201 (18%)
view
32 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
453:484 (3%)
680:711 (3%)
view
28 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
200:227 (2%)
261:288 (2%)
view
25 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
627:651 (2%)
714:738 (2%)
view
25 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
398:422 (2%)
487:511 (2%)
view
22 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
487:508 (2%)
714:735 (2%)
view
22 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
398:419 (2%)
714:735 (2%)
view
22 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
487:508 (2%)
627:648 (2%)
view
22 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
398:419 (2%)
627:648 (2%)
view
21 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
93:113 (2%)
126:146 (2%)
view
21 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
164:184 (2%)
201:221 (2%)
view
21 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
164:184 (2%)
262:282 (2%)
view
19 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
335:353 (1%)
602:620 (1%)
view
19 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
360:378 (1%)
680:698 (1%)
view
19 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
235:253 (1%)
270:288 (1%)
view
19 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
235:253 (1%)
296:314 (1%)
view
19 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
421:439 (1%)
650:668 (1%)
view
19 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
270:288 (1%)
296:314 (1%)
view
19 x 2 ROOT
ROOT
openapi.yaml
openapi.yaml
360:378 (1%)
453:471 (1%)
view