microsoft / azuredevopslabs
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
  • 7% duplication:
    • 19,184 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,414 duplicated lines
  • 120 duplicates
system7% (1,414 lines)
Duplication per Extension
css7% (1,182 lines)
yml25% (158 lines)
html8% (74 lines)
Duplication per Component (primary)
css7% (1,182 lines)
ROOT24% (122 lines)
_data/sidebars15% (58 lines)
_includes14% (52 lines)
_data0% (0 lines)
_includes/custom0% (0 lines)
_layouts0% (0 lines)
armtemplates/nodejs0% (0 lines)
js0% (0 lines)
labs/vstsextend0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 120 duplicates...
Size#FoldersFilesLinesCode
26 x 2 _includes
_includes
toc.html
tocnew.html
3:33 (96%)
3:33 (96%)
view
24 x 2 ROOT
ROOT
_config.yml
_config_dev.yml
74:101 (37%)
75:102 (37%)
view
20 x 2 ROOT
ROOT
_config.yml
_config_dev.yml
35:72 (31%)
36:73 (31%)
view
19 x 2 css
css
theme-blue-1.css
theme-blue.css
67:89 (22%)
70:92 (20%)
view
16 x 2 _data/sidebars
_data/sidebars
tfs.yml
vsts.yml
8:25 (10%)
8:25 (16%)
view
15 x 2 css
css
theme-blue-1.css
theme-blue.css
22:40 (18%)
25:43 (16%)
view
15 x 2 css
ROOT
new-style.css
slider.html
357:374 (2%)
16:33 (9%)
view
13 x 2 _data/sidebars
_data/sidebars
tfs.yml
vstslab_sidebar.yml
8:21 (8%)
8:21 (27%)
view
13 x 2 _data/sidebars
_data/sidebars
vsts.yml
vstslab_sidebar.yml
8:21 (13%)
8:21 (27%)
view
13 x 2 _data/sidebars
_data/sidebars
java.yml
vstslab_sidebar.yml
8:21 (24%)
8:21 (27%)
view
13 x 2 _data/sidebars
_data/sidebars
java.yml
vsts.yml
8:21 (24%)
8:21 (13%)
view
13 x 2 _data/sidebars
_data/sidebars
java.yml
tfs.yml
8:21 (24%)
8:21 (8%)
view
12 x 2 css
css
bootstrap.min.css
bootstrap.min.css
1632:1643 (<1%)
1649:1660 (<1%)
view
12 x 2 css
css
customstyles.css
customstyles.css
1077:1090 (<1%)
1090:1103 (<1%)
view
11 x 2 css
css
bootstrap.min.css
bootstrap.min.css
1596:1606 (<1%)
2157:2167 (<1%)
view
11 x 2 css
css
bootstrap.min.css
bootstrap.min.css
1608:1618 (<1%)
1986:1996 (<1%)
view
11 x 2 css
css
bootstrap.min.css
lavish-bootstrap.css
3504:3514 (<1%)
3293:3304 (<1%)
view
11 x 2 css
css
bootstrap.min.css
bootstrap.min.css
1620:1630 (<1%)
1817:1827 (<1%)
view
11 x 2 css
css
lavish-bootstrap.css
lavish-bootstrap.css
860:871 (<1%)
915:926 (<1%)
view
10 x 2 css
css
lavish-bootstrap.css
lavish-bootstrap.css
405:414 (<1%)
5056:5065 (<1%)
view