microsoft / cordova-simulate
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:
    • 12,634 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 828 duplicated lines
  • 285 duplicates
system6% (828 lines)
Duplication per Extension
html25% (704 lines)
js2% (112 lines)
css2% (12 lines)
Duplication per Component (primary)
src/i18n26% (655 lines)
src/sim-host5% (76 lines)
src/plugins11% (61 lines)
src/server1% (20 lines)
src/app-host3% (10 lines)
tools/i18n<1% (6 lines)
ROOT0% (0 lines)
src/devices0% (0 lines)
src/modules0% (0 lines)
src/platforms0% (0 lines)
src0% (0 lines)

Duplication Between Components (50+ lines)

G src/i18n src/i18n src/plugins src/plugins src/i18n--src/plugins 686

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 285 duplicates...
Size#FoldersFilesLinesCode
32 x 2 src/i18n/cs/plugins/cord...ugin-device-orientation
src/i18n/pl/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
3:47 (84%)
3:47 (84%)
view
30 x 2 src/i18n/es/plugins/cord...ugin-device-orientation
src/i18n/fr/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/es/plugins/cord...ugin-device-orientation
src/i18n/tr/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/it/plugins/cord...ugin-device-orientation
src/i18n/ko/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/ru/plugins/cord...ugin-device-orientation
src/i18n/zh-Hans/plugins...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/ru/plugins/cord...ugin-device-orientation
src/i18n/tr/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/ja/plugins/cord...ugin-device-orientation
src/i18n/ru/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/de/plugins/cord...ugin-device-orientation
src/i18n/pl/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/zh-Hant/plugins...ugin-device-orientation
src/plugins/cordova-plugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
4:46 (78%)
view
30 x 2 src/i18n/ja/plugins/cord...ugin-device-orientation
src/i18n/pt/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/it/plugins/cord...ugin-device-orientation
src/i18n/ja/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/pt/plugins/cord...ugin-device-orientation
src/plugins/cordova-plugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
4:46 (78%)
view
30 x 2 src/i18n/es/plugins/cord...ugin-device-orientation
src/i18n/pt/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/es/plugins/cord...ugin-device-orientation
src/i18n/it/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/ja/plugins/cord...ugin-device-orientation
src/i18n/zh-Hant/plugins...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/fr/plugins/cord...ugin-device-orientation
src/i18n/pl/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/ru/plugins/cord...ugin-device-orientation
src/i18n/zh-Hant/plugins...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/it/plugins/cord...ugin-device-orientation
src/i18n/tr/plugins/cord...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
30 x 2 src/i18n/fr/plugins/cord...ugin-device-orientation
src/plugins/cordova-plugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
4:46 (78%)
view
30 x 2 src/i18n/ja/plugins/cord...ugin-device-orientation
src/i18n/zh-Hans/plugins...ugin-device-orientation
sim-host-panels.html
sim-host-panels.html
5:47 (78%)
5:47 (78%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/app-host
src/sim-host/ui
app-host.js
sim-host.js
29:42 
95:108 
view
7 x 2 src/server/utils
tools/i18n
jsUtils.js
files.js
115:124 
48:55 
view
6 x 2 src/server/utils
tools/i18n
jsUtils.js
files.js
143:150 
39:46 
view