facebookincubator / fbjni
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:
    • 4,446 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 94 duplicated lines
  • 10 duplicates
system2% (94 lines)
Duplication per Extension
h2% (82 lines)
cpp1% (12 lines)
Duplication per Component (primary)
cxx/fbjni/detail2% (94 lines)
cxx/fbjni0% (0 lines)
cxx/lyra0% (0 lines)
java/com/facebook/jni0% (0 lines)
java/com/facebook/jni/annotations0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
8 x 2 cxx/fbjni/detail
cxx/fbjni/detail
457:464 (1%)
484:491 (1%)
view
8 x 2 cxx/fbjni/detail
cxx/fbjni/detail
457:464 (1%)
514:521 (1%)
view
8 x 2 cxx/fbjni/detail
cxx/fbjni/detail
484:491 (1%)
514:521 (1%)
view
7 x 2 cxx/fbjni/detail
cxx/fbjni/detail
192:200 (2%)
257:265 (2%)
view
7 x 2 cxx/fbjni/detail
cxx/fbjni/detail
468:475 (1%)
497:504 (1%)
view
6 x 2 cxx/fbjni/detail
cxx/fbjni/detail
470:475 (1%)
528:533 (1%)
view
6 x 2 cxx/fbjni/detail
cxx/fbjni/detail
173:179 (2%)
182:188 (2%)
view
6 x 2 cxx/fbjni/detail
cxx/fbjni/detail
76:82 (3%)
98:103 (3%)
view
6 x 2 cxx/fbjni/detail
cxx/fbjni/detail
499:504 (1%)
528:533 (1%)
view
6 x 2 cxx/fbjni/detail
cxx/fbjni/detail
155:161 (2%)
164:170 (2%)
view