microsoft / sarif-website
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
  • 37% duplication:
    • 26,238 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 9,712 duplicated lines
  • 672 duplicates
system37% (9,712 lines)
Duplication per Extension
js38% (9,262 lines)
css34% (450 lines)
Duplication per Component (primary)
src/SarifWeb/wwwroot/js38% (9,262 lines)
src/SarifWeb/wwwroot/css34% (450 lines)
ROOT0% (0 lines)
src/SarifWeb/Controllers0% (0 lines)
src/SarifWeb/Models0% (0 lines)
src/SarifWeb0% (0 lines)
src/SarifWeb/Services0% (0 lines)
src/SarifWeb/Utilities0% (0 lines)
src/SarifWeb/Views/Home0% (0 lines)
src/SarifWeb/Views/Shared0% (0 lines)
src/SarifWeb/Views/Validation0% (0 lines)
src/SarifWeb/Views0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 672 duplicates...
Size#FoldersFilesLinesCode
1030 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
popper.js
popper.js
25:2508 (99%)
31:2514 (99%)
view
780 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-emmet.js
ext-language_tools.js
1:907 (74%)
1:907 (46%)
view
677 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-options.js
ext-settings_menu.js
1:742 (99%)
1:742 (96%)
view
520 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
popper-utils.js
popper-utils.js
32:1103 (99%)
38:1109 (93%)
view
278 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js
popper-utils.js
popper.js
32:592 (57%)
94:654 (30%)
view
252 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/umd
bootstrap.bundle.js
popper.js
2828:3353 (6%)
1282:1806 (24%)
view
252 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/esm
bootstrap.bundle.js
popper.js
2828:3353 (6%)
1276:1800 (24%)
view
208 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-modelist.js
ext-options.js
1:220 (97%)
117:336 (30%)
view
208 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-modelist.js
ext-settings_menu.js
1:220 (97%)
117:336 (29%)
view
203 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/umd
bootstrap.bundle.js
popper.js
3377:4081 (5%)
1810:2514 (19%)
view
203 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/esm
bootstrap.bundle.js
popper.js
3377:4081 (5%)
1804:2508 (19%)
view
183 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
popper.js
popper-utils.js
409:734 (17%)
309:635 (32%)
view
183 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/esm
popper-utils.js
popper.js
303:629 (35%)
409:734 (17%)
view
183 x 2 src/SarifWeb/wwwroot/js/umd
src/SarifWeb/wwwroot/js/umd
popper-utils.js
popper.js
309:635 (32%)
415:740 (17%)
view
183 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
popper-utils.js
popper.js
303:629 (35%)
415:740 (17%)
view
170 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/esm
bootstrap.bundle.js
popper.js
2262:2708 (4%)
765:1210 (16%)
view
170 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/umd
bootstrap.bundle.js
popper.js
2262:2708 (4%)
771:1216 (16%)
view
128 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-textarea.js
theme-textmate.js
1:130 (26%)
1:130 (95%)
view
120 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
popper.js
popper-utils.js
94:365 (11%)
38:309 (21%)
view
120 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/esm
popper-utils.js
popper.js
32:303 (22%)
94:365 (11%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 139 unit duplicates...
Size#FoldersFilesLinesCode
212 x 3 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-modelist.js
ext-options.js
ext-settings_menu.js
1:220 
117:336 
117:336 
view
319 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-options.js
ext-settings_menu.js
398:742 
398:742 
view
127 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-textarea.js
theme-textmate.js
1:130 
1:130 
view
105 x 3 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-keybinding_menu.js
ext-options.js
ext-settings_menu.js
1:115 
1:115 
1:115 
view
101 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-emmet.js
ext-language_tools.js
237:344 
237:344 
view
56 x 3 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
bootstrap.bundle.js
popper.js
popper.js
3053:3134 
1500:1581 
1506:1587 
view
56 x 2 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
popper.js
popper.js
1220:1305 
1226:1311 
view
54 x 3 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-options.js
ext-settings_menu.js
ext-themelist.js
338:396 
338:396 
1:59 
view
46 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-emmet.js
ext-language_tools.js
757:806 
757:806 
view
44 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-emmet.js
ext-language_tools.js
632:680 
632:680 
view
44 x 3 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
bootstrap.bundle.js
popper.js
popper.js
2895:2968 
1342:1415 
1348:1421 
view
43 x 3 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
bootstrap.bundle.js
popper.js
popper.js
3229:3294 
1676:1741 
1682:1747 
view
41 x 5 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
src/SarifWeb/wwwroot/js/umd
bootstrap.bundle.js
popper-utils.js
popper.js
popper-utils.js
popper.js
2182:2231 
581:630 
686:735 
587:636 
692:741 
view
36 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-emmet.js
ext-language_tools.js
113:150 
113:150 
view
36 x 2 src/SarifWeb/wwwroot/js/ace
src/SarifWeb/wwwroot/js/ace
ext-emmet.js
ext-language_tools.js
157:193 
157:193 
view
36 x 4 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
src/SarifWeb/wwwroot/js/umd
popper-utils.js
popper.js
popper-utils.js
popper.js
390:440 
495:545 
396:446 
501:551 
view
36 x 4 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
src/SarifWeb/wwwroot/js/umd
popper-utils.js
popper.js
popper-utils.js
popper.js
513:563 
618:668 
519:569 
624:674 
view
35 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js
popper-utils.js
popper.js
375:423 
437:485 
view
34 x 4 src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/esm
src/SarifWeb/wwwroot/js/umd
src/SarifWeb/wwwroot/js/umd
popper-utils.js
popper.js
popper-utils.js
popper.js
341:388 
446:493 
347:394 
452:499 
view
34 x 2 src/SarifWeb/wwwroot/js
src/SarifWeb/wwwroot/js
popper-utils.js
popper.js
326:373 
388:435 
view