microsoft / FishStore
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
  • 10% duplication:
    • 7,408 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 756 duplicated lines
  • 58 duplicates
system10% (756 lines)
Duplication per Extension
h9% (640 lines)
cc24% (116 lines)
Duplication per Component (primary)
src/core8% (511 lines)
src/environment31% (245 lines)
ROOT0% (0 lines)
src/adapters0% (0 lines)
src/device0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 58 duplicates...
Size#FoldersFilesLinesCode
22 x 2 src/environment
src/environment
file_linux.cc
file_windows.cc
148:180 (18%)
310:342 (8%)
view
22 x 2 src/core
src/core
fishstore.h
fishstore.h
2039:2066 (<1%)
2115:2137 (<1%)
view
21 x 2 src/core
src/core
fishstore.h
fishstore.h
1296:1335 (<1%)
1346:1371 (<1%)
view
18 x 2 src/core
src/core
fishstore.h
fishstore.h
3796:3816 (<1%)
3872:3892 (<1%)
view
15 x 2 src/core
src/core
fishstore.h
fishstore.h
1933:1951 (<1%)
2048:2066 (<1%)
view
15 x 2 src/core
src/core
fishstore.h
fishstore.h
1933:1951 (<1%)
2122:2137 (<1%)
view
14 x 2 src/core
src/core
internal_contexts.h
internal_contexts.h
399:419 (4%)
463:483 (4%)
view
12 x 2 src/environment
src/environment
file_linux.h
file_windows.h
101:122 (8%)
104:125 (5%)
view
11 x 2 src/core
src/core
fishstore.h
fishstore.h
981:995 (<1%)
1005:1018 (<1%)
view
11 x 2 src/environment
src/environment
file_linux.h
file_windows.h
55:74 (7%)
58:77 (4%)
view
11 x 2 src/environment
src/environment
file_windows.h
file_windows.h
249:267 (4%)
311:329 (4%)
view
10 x 2 src/core
src/core
hash_table.h
malloc_fixed_page_size.h
184:194 (4%)
431:441 (2%)
view
10 x 2 src/core
src/core
hash_table.h
malloc_fixed_page_size.h
240:250 (4%)
499:509 (2%)
view
10 x 2 src/core
src/core
fishstore.h
fishstore.h
2016:2033 (<1%)
2100:2113 (<1%)
view
10 x 2 src/environment
src/environment
file_linux.h
file_windows.h
235:248 (7%)
398:411 (4%)
view
9 x 2 src/core
src/core
fishstore.h
fishstore.h
3590:3599 (<1%)
3619:3628 (<1%)
view
9 x 2 src/core
src/core
lss_allocator.cc
lss_allocator.cc
77:89 (9%)
130:142 (9%)
view
9 x 2 src/core
src/core
fishstore.h
fishstore.h
1918:1931 (<1%)
2032:2045 (<1%)
view
9 x 2 src/environment
src/environment
file_linux.h
file_windows.h
76:88 (6%)
79:91 (4%)
view
9 x 2 src/core
src/core
fishstore.h
fishstore.h
2535:2550 (<1%)
2625:2640 (<1%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 src/core
src/core
hash_table.h
malloc_fixed_page_size.h
183:196 
430:443 
view
13 x 2 src/core
src/core
hash_table.h
malloc_fixed_page_size.h
239:252 
498:511 
view
9 x 2 src/environment
src/environment
file_linux.cc
file_windows.cc
151:160 
219:228 
view
8 x 2 src/environment
src/environment
file_linux.cc
file_windows.cc
162:170 
230:238 
view
6 x 2 src/device
src/device
file_system_disk.h
file_system_disk.h
460:466 
471:477 
view