microsoft / extension-manifest-editor
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
  • 9% duplication:
    • 1,117 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 102 duplicated lines
  • 5 duplicates
system9% (102 lines)
Duplication per Extension
ts11% (84 lines)
css5% (18 lines)
Duplication per Component (primary)
src11% (84 lines)
Resources4% (18 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
14 x 2 src
src
VscHtmlGenerator.ts
VstsHtmlGenerator.ts
12:31 (23%)
13:30 (26%)
view
13 x 2 src
src
VscHtmlGenerator.ts
VstsHtmlGenerator.ts
73:86 (21%)
71:84 (24%)
view
9 x 2 Resources
Resources
template_default.css
template_default.css
306:317 (2%)
337:348 (2%)
view
8 x 2 src
src
PreviewManagerVSC.ts
PreviewManagerVSTS.ts
23:32 (40%)
23:32 (40%)
view
7 x 2 src
src
BasePreviewManager.ts
BasePreviewManager.ts
90:96 (5%)
141:147 (5%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
13 x 2 src
src
VscHtmlGenerator.ts
VstsHtmlGenerator.ts
17:33 
17:32 
view