whatsapp / erlfmt
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:
    • 4,175 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 191 duplicated lines
  • 43 duplicates
system4% (191 lines)
Duplication per Extension
erl4% (133 lines)
html29% (18 lines)
py11% (14 lines)
yrl1% (13 lines)
hrl61% (13 lines)
Duplication per Component (primary)
src3% (159 lines)
doc/FormattingDecisionComments17% (32 lines)
Longest Duplicates
The list of 43 longest duplicates.
See data for all 43 duplicates...
Size#FoldersFilesLinesCode
13 x 2 src
src
1:13 (1%)
1:13 (4%)
view
13 x 2 src
src
1:13 (1%)
1:13 (29%)
view
13 x 2 src
src
1:13 (4%)
1:13 (61%)
view
13 x 2 src
src
1:13 (1%)
2:14 (1%)
view
13 x 2 src
src
1:13 (2%)
1:13 (61%)
view
13 x 2 src
src
2:14 (1%)
1:13 (61%)
view
13 x 2 src
src
1:13 (1%)
2:14 (1%)
view
13 x 2 src
src
2:14 (1%)
1:13 (4%)
view
13 x 2 src
src
1:13 (61%)
1:13 (29%)
view
13 x 2 src
src
1:13 (1%)
2:14 (2%)
view
13 x 2 src
src
1:13 (2%)
1:13 (4%)
view
13 x 2 src
src
2:14 (1%)
1:13 (4%)
view
13 x 2 src
src
1:13 (4%)
1:13 (4%)
view
13 x 2 src
src
1:13 (1%)
1:13 (4%)
view
13 x 2 src
src
1:13 (2%)
1:13 (1%)
view
13 x 2 src
src
2:14 (2%)
1:13 (4%)
view
13 x 2 src
src
2:14 (2%)
1:13 (2%)
view
13 x 2 src
src
1:13 (2%)
1:13 (4%)
view
13 x 2 src
src
1:13 (1%)
1:13 (1%)
view
13 x 2 src
src
1:13 (4%)
1:13 (29%)
view
13 x 2 src
src
1:13 (4%)
1:13 (29%)
view
13 x 2 src
src
2:14 (2%)
1:13 (29%)
view
13 x 2 src
src
1:13 (2%)
1:13 (29%)
view
13 x 2 src
src
2:14 (2%)
1:13 (4%)
view
13 x 2 src
src
1:13 (1%)
1:13 (61%)
view
13 x 2 src
src
1:13 (1%)
1:13 (4%)
view
13 x 2 src
src
1:13 (4%)
1:13 (61%)
view
13 x 2 src
src
1:13 (1%)
1:13 (2%)
view
13 x 2 src
src
2:14 (2%)
1:13 (1%)
view
13 x 2 src
src
2:14 (2%)
2:14 (1%)
view
13 x 2 src
src
1:13 (1%)
1:13 (29%)
view
13 x 2 src
src
2:14 (2%)
1:13 (61%)
view
13 x 2 src
src
2:14 (1%)
1:13 (29%)
view
13 x 2 src
src
1:13 (1%)
1:13 (4%)
view
13 x 2 src
src
1:13 (1%)
1:13 (61%)
view
13 x 2 src
src
1:13 (2%)
2:14 (1%)
view
8 x 2 src
src
89:96 (1%)
133:140 (1%)
view
7 x 2 src
src
273:279 (1%)
286:292 (1%)
view
7 x 2 doc/FormattingDecisionComments
doc/FormattingDecisionComments
20:26 (15%)
18:24 (9%)
view
6 x 2 doc/FormattingDecisionComments
doc/FormattingDecisionComments
30:35 (9%)
44:49 (9%)
view
6 x 2 doc/FormattingDecisionComments
doc/FormattingDecisionComments
30:35 (9%)
37:42 (9%)
view
6 x 2 doc/FormattingDecisionComments
doc/FormattingDecisionComments
37:42 (9%)
44:49 (9%)
view
6 x 2 src
src
104:109 (<1%)
148:153 (<1%)
view