facebookincubator / fbc-mobile-app-core
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
  • 10% duplication:
    • 4,739 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 506 duplicated lines
  • 28 duplicates
system10% (506 lines)
Duplication per Extension
js11% (474 lines)
java6% (32 lines)
Duplication per Component (primary)
packages/@fbcmobile-ui/Components/FormInput18% (251 lines)
packages/@fbcmobile-ui/Components8% (87 lines)
packages/@fbcmobile-ui/Components/Views44% (56 lines)
packages/@fbcmobile-signalscan75% (52 lines)
packages/@fbcmobile-signalscan/android/src6% (32 lines)
packages/@fbcmobile-ui/Logging6% (20 lines)
packages/@fbcmobile-ui/Components/Core1% (8 lines)
ROOT0% (0 lines)
packages/@fbcmobile-ui/Utils0% (0 lines)
packages/@fbcmobile-ui/Screens0% (0 lines)
packages/@fbcmobile-ui/Theme0% (0 lines)
packages/@fbcmobile-ui/Hooks0% (0 lines)
packages/@fbcmobile-ui/Services0% (0 lines)
jest0% (0 lines)

Duplication Between Components (50+ lines)

G packages/@fbcmobile-signalscan packages/@fbcmobile-signalscan packages/@fbcmobile-ui/Components/Views packages/@fbcmobile-ui/Components/Views packages/@fbcmobile-signalscan--packages/@fbcmobile-ui/Components/Views 96

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 28 longest duplicates.
See data for all 28 duplicates...
Size#FoldersFilesLinesCode
32 x 2 packages/@fbcmobile-signalscan
packages/@fbcmobile-ui/Components/Views
12:48 (86%)
12:50 (42%)
view
26 x 2 packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
117:145 (15%)
123:151 (15%)
view
16 x 2 packages/@fbcmobile-signalscan
packages/@fbcmobile-ui/Components/Views
17:32 (53%)
23:38 (32%)
view
15 x 2 packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
152:167 (9%)
157:172 (9%)
view
12 x 2 packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
184:196 (7%)
180:192 (7%)
view
11 x 2 packages/@fbcmobile-ui/Components
packages/@fbcmobile-ui/Components
57:68 (20%)
54:65 (20%)
view
10 x 2 packages/@fbcmobile-ui/Logging
packages/@fbcmobile-ui/Logging
149:158 (3%)
366:375 (3%)
view
10 x 2 packages/@fbcmobile-ui/Components/FormInput
packages/@fbcmobile-ui/C...s/FormInput/PhotoPicker
138:148 (4%)
102:112 (3%)
view
10 x 2 packages/@fbcmobile-ui/Components
packages/@fbcmobile-ui/Components
44:54 (23%)
37:47 (32%)
view
10 x 2 packages/@fbcmobile-ui/Components/FormInput
packages/@fbcmobile-ui/C...s/FormInput/PhotoPicker
37:46 (4%)
58:67 (3%)
view
9 x 2 packages/@fbcmobile-sign...java/com/fbc/signalscan
packages/@fbcmobile-sign...java/com/fbc/signalscan
136:146 (3%)
67:77 (8%)
view
9 x 2 packages/@fbcmobile-ui/Components/FormInput
packages/@fbcmobile-ui/C...s/FormInput/PhotoPicker
150:158 (4%)
114:122 (3%)
view
9 x 2 packages/@fbcmobile-ui/Components/FormInput
packages/@fbcmobile-ui/Components
184:192 (5%)
70:78 (14%)
view
8 x 2 packages/@fbcmobile-signalscan
packages/@fbcmobile-signalscan
43:51 (21%)
27:35 (26%)
view
8 x 2 packages/@fbcmobile-ui/Components
packages/@fbcmobile-ui/Components
69:76 (14%)
69:76 (15%)
view
8 x 2 packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
201:208 (4%)
197:204 (4%)
view
7 x 2 packages/@fbcmobile-sign...om/fbc/signalscan/utils
packages/@fbcmobile-sign...om/fbc/signalscan/utils
69:75 (12%)
88:94 (12%)
view
7 x 2 packages/@fbcmobile-ui/Components
packages/@fbcmobile-ui/Components
33:40 (33%)
37:44 (28%)
view
7 x 2 packages/@fbcmobile-ui/Components/Views
packages/@fbcmobile-ui/Components/Views
45:52 (9%)
33:40 (14%)
view
7 x 2 packages/@fbcmobile-ui/Components/FormInput
packages/@fbcmobile-ui/C...s/FormInput/PhotoPicker
229:235 (3%)
68:74 (7%)
view
6 x 2 packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
63:68 (3%)
70:75 (3%)
view
6 x 2 packages/@fbcmobile-signalscan
packages/@fbcmobile-ui/Components/Views
27:32 (20%)
45:50 (8%)
view
6 x 2 packages/@fbcmobile-ui/Components/FormInput
packages/@fbcmobile-ui/Components/FormInput
159:165 (3%)
141:147 (4%)
view
6 x 2 packages/@fbcmobile-ui/Components/Core
packages/@fbcmobile-ui/Components
53:59 (12%)
50:56 (12%)
view
6 x 2 packages/@fbcmobile-ui/C...s/FormInput/PhotoPicker
packages/@fbcmobile-ui/C...s/FormInput/PhotoPicker
84:89 (6%)
105:110 (6%)
view
6 x 2 packages/@fbcmobile-signalscan
packages/@fbcmobile-ui/Components/Views
43:48 (16%)
33:38 (12%)
view
6 x 2 packages/@fbcmobile-ui/Components/Core
packages/@fbcmobile-ui/Components/Views
55:61 (12%)
75:81 (8%)
view
6 x 2 packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
packages/@fbcmobile-ui/C...ts/FormInput/SignalScan
102:107 (3%)
62:67 (3%)
view