microsoft / aroworkshop
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
  • 3% duplication:
    • 1,149 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 2 duplicates
system3% (44 lines)
Duplication per Extension
scss5% (44 lines)
Duplication per Component (primary)
_sass/modules18% (30 lines)
_sass/partials2% (14 lines)
ROOT0% (0 lines)
_includes0% (0 lines)
_layouts0% (0 lines)
_plugins0% (0 lines)
css0% (0 lines)
js0% (0 lines)
yaml0% (0 lines)
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
15 x 2 _sass/modules
_sass/modules
_mixins.scss
_mixins.scss
67:81 (11%)
112:126 (11%)
view
7 x 2 _sass/partials
_sass/partials
_nav.scss
_nav.scss
85:91 (7%)
94:101 (7%)
view