reactjs / server-components-demo
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,478 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 46 duplicated lines
  • 4 duplicates
system3% (46 lines)
Duplication per Extension
js4% (34 lines)
css1% (12 lines)
Duplication per Component (primary)
src6% (34 lines)
public1% (12 lines)
ROOT0% (0 lines)
server0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
12 x 2 src
src
13:24 (48%)
19:30 (48%)
view
8 x 2 src
src
34:41 (12%)
62:69 (12%)
view
6 x 2 src
src
13:18 (24%)
25:30 (24%)
view
6 x 2 public
public
223:228 (<1%)
516:521 (<1%)
view