microsoft / vscode-cordova
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:
    • 4,844 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 274 duplicated lines
  • 30 duplicates
system5% (274 lines)
Duplication per Extension
ts5% (262 lines)
js3% (12 lines)
Duplication per Component (primary)
src/debugger/cdp-proxy21% (164 lines)
src/extension12% (54 lines)
src/debugger3% (44 lines)
ROOT3% (12 lines)
src/common0% (0 lines)
src/common/node0% (0 lines)
src0% (0 lines)
src/utils/android0% (0 lines)
src/utils0% (0 lines)
src/utils/log0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 30 duplicates...
Size#FoldersFilesLinesCode
28 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
safariCordovaCDPMessageHandler.ts
safariIonicCDPMessageHandler.ts
37:78 (38%)
42:83 (33%)
view
12 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
chromeCordovaCDPMessageHandler.ts
chromeIonicCDPMessageHandler.ts
35:50 (26%)
35:50 (22%)
view
12 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
chromeCordovaCDPMessageHandler.ts
chromeIonicCDPMessageHandler.ts
51:66 (26%)
52:67 (22%)
view
9 x 2 src/debugger
src/debugger
cordovaDebugSession.ts
cordovaDebugSession.ts
621:629 (<1%)
662:670 (<1%)
view
7 x 2 src/debugger
src/debugger
cordovaDebugSession.ts
cordovaDebugSession.ts
676:687 (<1%)
1411:1422 (<1%)
view
6 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
chromeIonicCDPMessageHandler.ts
safariCordovaCDPMessageHandler.ts
17:22 (11%)
16:21 (8%)
view
6 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
safariCordovaCDPMessageHandler.ts
safariIonicCDPMessageHandler.ts
103:110 (8%)
118:125 (7%)
view
6 x 2 src/debugger/cdp-proxy/C...ageHandlers/abstraction
src/debugger/cdp-proxy/C...Handlers/implementation
safariCDPMessageHandlerBase.ts
safariIonicCDPMessageHandler.ts
20:25 (7%)
18:23 (7%)
view
6 x 2 src/debugger/cdp-proxy/C...ageHandlers/abstraction
src/debugger/cdp-proxy/C...Handlers/implementation
chromeCDPMessageHandlerBase.ts
safariCordovaCDPMessageHandler.ts
11:16 (19%)
16:21 (8%)
view
6 x 2 src/extension
src/extension
debugConfigurationProvider.ts
debugConfigurationProvider.ts
37:42 (3%)
47:52 (3%)
view
6 x 2 src/debugger/cdp-proxy/C...ageHandlers/abstraction
src/debugger/cdp-proxy/C...Handlers/implementation
safariCDPMessageHandlerBase.ts
safariCordovaCDPMessageHandler.ts
20:25 (7%)
16:21 (8%)
view
6 x 2 src/extension
src/extension
debugConfigurationProvider.ts
debugConfigurationProvider.ts
100:105 (3%)
111:116 (3%)
view
6 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
safariCordovaCDPMessageHandler.ts
safariIonicCDPMessageHandler.ts
16:21 (8%)
18:23 (7%)
view
6 x 2 src/debugger/cdp-proxy/C...ageHandlers/abstraction
src/debugger/cdp-proxy/C...Handlers/implementation
chromeCDPMessageHandlerBase.ts
chromeIonicCDPMessageHandler.ts
11:16 (19%)
17:22 (11%)
view
6 x 2 src/extension
src/extension
debugConfigurationProvider.ts
debugConfigurationProvider.ts
57:62 (3%)
67:72 (3%)
view
6 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
chromeCordovaCDPMessageHandler.ts
chromeIonicCDPMessageHandler.ts
17:22 (13%)
17:22 (11%)
view
6 x 2 src/debugger/cdp-proxy/C...Handlers/implementation
src/debugger/cdp-proxy/C...Handlers/implementation
chromeCordovaCDPMessageHandler.ts
safariIonicCDPMessageHandler.ts
17:22 (13%)
18:23 (7%)
view
6 x 2 src/debugger
src/debugger
jsDebugConfigAdapter.ts
jsDebugConfigAdapter.ts
55:65 (5%)
97:102 (5%)
view
6 x 2 src/debugger/cdp-proxy/C...ageHandlers/abstraction
src/debugger/cdp-proxy/C...ageHandlers/abstraction
chromeCDPMessageHandlerBase.ts
safariCDPMessageHandlerBase.ts
11:16 (19%)
20:25 (7%)
view
6 x 2 src/extension
src/extension
debugConfigurationProvider.ts
debugConfigurationProvider.ts
89:94 (3%)
111:116 (3%)
view