microsoft / contact-card
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
  • 4% duplication:
    • 1,173 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 57 duplicated lines
  • 6 duplicates
system4% (57 lines)
Duplication per Extension
tsx5% (24 lines)
scss11% (21 lines)
ts4% (12 lines)
Duplication per Component (primary)
src8% (57 lines)
ROOT0% (0 lines)
config/jest0% (0 lines)
config0% (0 lines)
scripts0% (0 lines)
src/contactCard0% (0 lines)
src/supporting0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src
src
PersonaWithCard.scss
PersonaWithCard.scss
146:153 (3%)
200:207 (3%)
view
7 x 2 src
src
PersonaWithCard.scss
PersonaWithCard.scss
71:78 (3%)
146:153 (3%)
view
7 x 2 src
src
PersonaWithCard.scss
PersonaWithCard.scss
71:78 (3%)
200:207 (3%)
view
6 x 2 src
src
PersonaWithCard.tsx
PersonaWithCard.tsx
240:245 (2%)
260:265 (2%)
view
6 x 2 src
src
GraphService.ts
GraphService.ts
180:186 (3%)
214:220 (3%)
view
6 x 2 src
src
Persona.tsx
PersonaWithCard.tsx
68:75 (11%)
105:112 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 scripts
scripts
test.js
test.js
19:26 
28:35 
view