microsoft / azure-devops-node-api
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
  • 46% duplication:
    • 58,470 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 27,384 duplicated lines
  • 69,230 duplicates
system46% (27,384 lines)
Duplication per Extension
ts47% (27,384 lines)
Duplication per Component (primary)
api65% (23,747 lines)
api/interfaces17% (3,624 lines)
api/interfaces/common1% (13 lines)
api/handlers0% (0 lines)
api/opensource/node-http-ntlm0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 69,230 duplicates...
Size#FoldersFilesLinesCode
80 x 2 api/interfaces
api/interfaces
GitInterfaces.ts
TfvcInterfaces.ts
3505:3815 (2%)
418:728 (18%)
view
51 x 2 api/interfaces
api/interfaces
GitInterfaces.ts
TfvcInterfaces.ts
3198:3409 (1%)
137:348 (11%)
view
41 x 2 api
api
GitApi.ts
GitApi.ts
1993:2039 (<1%)
2135:2181 (<1%)
view
41 x 2 api
api
GitApi.ts
GitApi.ts
1993:2039 (<1%)
2208:2254 (<1%)
view
41 x 2 api
api
GitApi.ts
GitApi.ts
2135:2181 (<1%)
2208:2254 (<1%)
view
39 x 2 api/interfaces
api/interfaces
BuildInterfaces.ts
BuildInterfaces.ts
3808:3847 (2%)
3850:3889 (2%)
view
37 x 2 api/interfaces
api/interfaces
GitInterfaces.ts
TfvcInterfaces.ts
5675:5723 (1%)
953:1001 (8%)
view
35 x 2 api/interfaces
api/interfaces
WorkItemTrackingProcessDefinitionsInt...
WorkItemTrackingProcessInterfaces.ts
255:366 (13%)
338:482 (6%)
view
33 x 2 api
api
TfvcApi.ts
TfvcApi.ts
812:850 (3%)
873:911 (3%)
view
33 x 2 api
api
TfvcApi.ts
TfvcApi.ts
694:732 (3%)
812:850 (3%)
view
33 x 2 api
api
TfvcApi.ts
TfvcApi.ts
694:732 (3%)
873:911 (3%)
view
32 x 2 api/interfaces
api/interfaces
GitInterfaces.ts
TfvcInterfaces.ts
5595:5636 (1%)
894:935 (7%)
view
30 x 2 api/interfaces
api/interfaces
GitInterfaces.ts
TfvcInterfaces.ts
4387:4418 (1%)
803:834 (6%)
view
29 x 2 api/interfaces
api/interfaces
GitInterfaces.ts
TfvcInterfaces.ts
4420:4450 (1%)
834:864 (6%)
view
29 x 2 api/interfaces
api/interfaces
BuildInterfaces.ts
TaskAgentInterfaces.ts
4248:4280 (1%)
4916:4948 (1%)
view
27 x 2 api
api
GitApi.ts
GitApi.ts
328:359 (<1%)
425:456 (<1%)
view
27 x 2 api
api
WikiApi.ts
WikiApi.ts
610:641 (3%)
662:693 (3%)
view
27 x 2 api
api
DashboardApi.ts
DashboardApi.ts
525:557 (6%)
582:614 (6%)
view
27 x 2 api/interfaces
api/interfaces
ExtensionManagementInterfaces.ts
GalleryInterfaces.ts
1210:1239 (4%)
1960:1989 (2%)
view
27 x 2 api
api
TestApi.ts
TestApi.ts
417:449 (1%)
526:558 (1%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 46 unit duplicates...
Size#FoldersFilesLinesCode
50 x 2 api
api
GitApi.ts
GitApi.ts
1992:2047 
2134:2189 
view
43 x 2 api
api
WorkApi.ts
WorkApi.ts
296:348 
358:410 
view
42 x 2 api
api
TfvcApi.ts
TfvcApi.ts
693:740 
811:858 
view
36 x 2 api
api
BuildApi.ts
BuildApi.ts
676:720 
730:774 
view
36 x 2 api
api
GitApi.ts
GitApi.ts
3912:3956 
4990:5034 
view
36 x 2 api
api
TestApi.ts
TestApi.ts
416:457 
525:566 
view
36 x 2 api
api
WorkApi.ts
WorkApi.ts
720:764 
1044:1088 
view
36 x 2 api
api
WorkApi.ts
WorkApi.ts
1413:1457 
2199:2243 
view
35 x 2 api
api
GitApi.ts
GitApi.ts
327:367 
424:464 
view
35 x 2 api
api
GitApi.ts
GitApi.ts
2780:2822 
5097:5139 
view
35 x 2 api
api
WikiApi.ts
WikiApi.ts
609:649 
661:701 
view
35 x 2 api
api
WorkItemTrackingProcessApi.ts
WorkItemTrackingProcessDefinitionsApi.ts
965:1007 
705:747 
view
34 x 2 api
api
WorkApi.ts
WorkApi.ts
2302:2344 
2611:2653 
view
33 x 2 api
api
BuildApi.ts
BuildApi.ts
2527:2565 
2713:2751 
view
33 x 2 api
api
WikiApi.ts
WikiApi.ts
712:750 
761:799 
view
33 x 2 api
api
WorkItemTrackingProcessApi.ts
WorkItemTrackingProcessDefinitionsApi.ts
434:474 
402:442 
view
31 x 2 api
api
GitApi.ts
GitApi.ts
4261:4299 
5524:5562 
view
31 x 2 api
api
TaskAgentApiBase.ts
TaskAgentApiBase.ts
2562:2600 
7145:7183 
view
31 x 2 api
api
WorkItemTrackingApi.ts
WorkItemTrackingApi.ts
392:428 
438:474 
view
31 x 2 api
api
WorkItemTrackingProcessApi.ts
WorkItemTrackingProcessDefinitionsApi.ts
1364:1402 
1231:1269 
view