relayjs / eslint-plugin-relay
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
  • 6% duplication:
    • 1,449 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 89 duplicated lines
  • 8 duplicates
system6% (89 lines)
Duplication per Extension
js6% (89 lines)
Duplication per Component (primary)
src6% (89 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src
src
455:463 (1%)
480:488 (1%)
view
7 x 2 src
src
482:488 (<1%)
577:583 (<1%)
view
7 x 2 src
src
179:185 (<1%)
230:236 (<1%)
view
7 x 2 src
src
446:453 (<1%)
471:478 (<1%)
view
7 x 2 src
src
457:463 (<1%)
577:583 (<1%)
view
6 x 2 src
src
102:107 (5%)
116:121 (5%)
view
6 x 2 src
src
63:68 (4%)
15:20 (8%)
view
6 x 2 src
src
97:103 (4%)
26:32 (11%)
view