facebook / jscodeshift
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
  • 2% duplication:
    • 1,668 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 39 duplicated lines
  • 7 duplicates
system2% (39 lines)
Duplication per Extension
js2% (39 lines)
Duplication per Component (primary)
parser26% (39 lines)
ROOT0% (0 lines)
utils0% (0 lines)
sample0% (0 lines)
sample/__testfixtures__0% (0 lines)
sample/__testfixtures__/typescript0% (0 lines)
src0% (0 lines)
src/utils0% (0 lines)
src/collections0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
7 x 2 parser
parser
44:50 (21%)
18:24 (70%)
view
7 x 2 parser
parser
18:24 (70%)
21:27 (58%)
view
7 x 2 parser
parser
44:50 (21%)
21:27 (58%)
view
6 x 2 parser
parser
52:57 (14%)
22:27 (50%)
view
6 x 2 parser
parser
45:50 (18%)
52:57 (14%)
view
6 x 2 parser
parser
52:57 (14%)
19:24 (60%)
view
6 x 2 parser
parser
14:19 (14%)
15:20 (18%)
view