primer / primer.style
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
  • 5% duplication:
    • 1,114 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 8 duplicates
system5% (62 lines)
Duplication per Extension
js5% (62 lines)
Duplication per Component (primary)
src5% (62 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src/components
src/components
10:18 (50%)
10:18 (47%)
view
9 x 2 src/components
src/components
68:76 (9%)
81:89 (9%)
view
7 x 2 src/components
src/components
13:19 (36%)
12:18 (38%)
view
7 x 2 src/components
src/components
13:19 (36%)
10:16 (43%)
view
7 x 2 src/components
src/components
10:16 (43%)
12:18 (36%)
view
7 x 2 src/components
src/components
10:16 (43%)
12:18 (38%)
view
7 x 2 src/components
src/components
13:19 (36%)
12:18 (36%)
view
6 x 2 src/components
src/components
45:50 (6%)
58:63 (6%)
view