microsoft / vscode-azure-blockchain-ethereum
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:
    • 11,495 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,249 duplicated lines
  • 195 duplicates
system10% (1,249 lines)
Duplication per Extension
ts11% (1,223 lines)
css5% (26 lines)
Duplication per Component (primary)
src/helpers29% (358 lines)
src/debugAdapter22% (349 lines)
src/ARMBlockchain21% (199 lines)
src/Models10% (108 lines)
src/Generators14% (78 lines)
src/resourceExplorers5% (77 lines)
resources/welcome3% (26 lines)
src/services1% (18 lines)
src/validators3% (12 lines)
src/commands1% (12 lines)
src/pages5% (12 lines)
resources/codeFlowResult0% (0 lines)
src0% (0 lines)
src/ViewItems0% (0 lines)
ui-test/src0% (0 lines)

Duplication Between Components (50+ lines)

G src/debugAdapter src/debugAdapter src/helpers src/helpers src/debugAdapter--src/helpers 672

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 195 duplicates...
Size#FoldersFilesLinesCode
99 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
492:619 (26%)
512:639 (25%)
view
35 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
302:355 (9%)
315:368 (9%)
view
34 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
363:418 (9%)
371:426 (8%)
view
31 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
54:119 (8%)
51:116 (8%)
view
24 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
122:163 (6%)
131:172 (6%)
view
19 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
274:300 (5%)
286:312 (4%)
view
19 x 2 src/resourceExplorers
src/resourceExplorers
BlockchainDataManagerResourceExplorer.ts
ConsortiumResourceExplorer.ts
754:773 (3%)
282:301 (7%)
view
16 x 2 src/resourceExplorers
src/resourceExplorers
BlockchainDataManagerResourceExplorer.ts
BlockchainDataManagerResourceExplorer.ts
757:773 (2%)
779:795 (2%)
view
16 x 2 src/resourceExplorers
src/resourceExplorers
BlockchainDataManagerResourceExplorer.ts
ConsortiumResourceExplorer.ts
779:795 (2%)
285:301 (6%)
view
15 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
19:46 (4%)
20:47 (3%)
view
14 x 2 src/debugAdapter
src/helpers
cmdCommandExecutor.ts
command.ts
10:27 (13%)
10:27 (8%)
view
14 x 2 src/helpers
src/helpers
command.ts
command.ts
80:98 (8%)
160:178 (8%)
view
14 x 2 src/Generators
src/Generators
LogicAppGenerator.ts
LogicAppGenerator.ts
212:225 (7%)
250:263 (7%)
view
13 x 2 src/Generators
src/Generators
LogicAppGenerator.ts
LogicAppGenerator.ts
212:224 (6%)
230:242 (6%)
view
13 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
458:476 (3%)
470:488 (3%)
view
13 x 2 src/debugAdapter
src/helpers
cmdCommandExecutor.ts
command.ts
105:118 (12%)
151:164 (7%)
view
13 x 2 src/Generators
src/Generators
LogicAppGenerator.ts
LogicAppGenerator.ts
230:242 (6%)
250:262 (6%)
view
12 x 2 src/debugAdapter
src/helpers
cmdCommandExecutor.ts
command.ts
124:139 (11%)
178:193 (7%)
view
11 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
425:445 (2%)
429:449 (2%)
view
10 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
188:203 (2%)
206:221 (2%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 20 unit duplicates...
Size#FoldersFilesLinesCode
29 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
591:620 
611:640 
view
21 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
568:589 
588:609 
view
20 x 2 src/resourceExplorers
src/resourceExplorers
BlockchainDataManagerResourceExplorer.ts
ConsortiumResourceExplorer.ts
754:774 
282:302 
view
19 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
274:296 
286:308 
view
17 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
509:529 
529:549 
view
12 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
531:544 
551:564 
view
11 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
308:319 
321:332 
view
9 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
537:547 
557:567 
view
8 x 4 src/Models/ItemCreators
src/Models/ItemCreators/BlockchainDataManager
src/Models/ItemCreators/BlockchainDataManager
src/Models/ItemCreators
AzureBlockchainNetworkNodeItemCreator.ts
BlockchainDataManagerNetworkNodeItemC...
BlockchainDataManagerProjectItemCreat...
NetworkNodeItemCreator.ts
8:17 
9:18 
8:17 
7:16 
view
8 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
237:247 
261:271 
view
8 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
321:330 
334:343 
view
7 x 2 src
src
Constants.ts
Constants.ts
982:989 
991:998 
view
7 x 2 src/Models/ItemCreators
src/Models/ItemCreators
InfuraProjectItemCreator.ts
LocalProjectItemCreator.ts
8:16 
8:16 
view
7 x 2 src/Models
src/ViewItems
ItemFactory.ts
ViewItemFactory.ts
12:20 
13:21 
view
7 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
130:138 
139:147 
view
7 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
143:150 
152:159 
view
7 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
198:205 
216:223 
view
6 x 2 src/Models/ItemCreators/BlockchainDataManager
src/Models/ItemCreators
BlockchainDataManagerInputAndOutputIt...
MemberItemCreator.ts
9:16 
8:15 
view
6 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
560:566 
580:586 
view
64 x 2 src/debugAdapter
src/helpers
configurationReader.ts
truffleConfig.ts
523:595 
543:615 
view