microsoft / Dynamics-AX-Integration
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
  • 17% duplication:
    • 2,669 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 480 duplicated lines
  • 10 duplicates
system17% (480 lines)
Duplication per Extension
ps194% (194 lines)
targets100% (154 lines)
cs6% (120 lines)
php12% (12 lines)
Duplication per Component (primary)
FileBasedIntegrationSamples/LogicAppSamples96% (348 lines)
ServiceSamples/ServiceTests17% (41 lines)
ServiceSamples/ODataConsoleApplication19% (32 lines)
DIXFSamples/RecurringIntegrationApp2% (26 lines)
FileBasedIntegrationSamples/ConsoleAppSamples11% (14 lines)
ServiceSamples/PHPConsoleApplication10% (12 lines)
ServiceSamples/TLSConsoleApplication17% (7 lines)
ServiceSamples/AuthenticationUtility0% (0 lines)
ServiceSamples/JsonConsoleApplication0% (0 lines)
ServiceSamples/ODataUtility0% (0 lines)
ServiceSamples/SoapConsoleApplication0% (0 lines)
ServiceSamples/SoapUtility0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
97 x 2 FileBasedIntegrationSamp...5_to_oneDrive_logic_app
FileBasedIntegrationSamp...Drive_to_d365_logic_app
Deploy-AzureResourceGroup.ps1
Deploy-AzureResourceGroup.ps1
8:120 (94%)
8:120 (94%)
view
77 x 2 FileBasedIntegrationSamp...5_to_oneDrive_logic_app
FileBasedIntegrationSamp...Drive_to_d365_logic_app
targets
Deployment.targets
Deployment.targets
1:121 (100%)
1:121 (100%)
view
16 x 2 ServiceSamples/ODataConsoleApplication
ServiceSamples/ODataConsoleApplication
ODataChangesetsExample.cs
ODataChangesetsExample.cs
16:35 (30%)
53:72 (30%)
view
10 x 2 ServiceSamples/ServiceTests
ServiceSamples/ServiceTests
ServiceGroup1Tests.cs
ServiceGroup1Tests.cs
51:75 (8%)
92:116 (8%)
view
7 x 2 DIXFSamples/RecurringIntegrationApp/Views
DIXFSamples/RecurringIntegrationApp/Views
DIXFRecurringJobsProcessor.Designer.cs
SplashScreen.Designer.cs
8:29 (1%)
8:29 (18%)
view
7 x 2 FileBasedIntegrationSamp...ples/DataPackageHandler
FileBasedIntegrationSamp...ples/DataPackageHandler
PackageExporter.cs
PackageImporter.cs
25:36 (25%)
45:56 (21%)
view
7 x 2 ServiceSamples/ServiceTests
ServiceSamples/TLSConsoleApplication
TLSTests.cs
Program.cs
27:37 (29%)
28:38 (25%)
view
7 x 2 ServiceSamples/ServiceTests
ServiceSamples/ServiceTests
ServiceGroup1Tests.cs
ServiceGroup1Tests.cs
133:140 (6%)
187:194 (6%)
view
6 x 2 ServiceSamples/PHPConsoleApplication
ServiceSamples/PHPConsoleApplication
PHPExamples.php
PHPExamples.php
54:63 (12%)
81:90 (12%)
view
6 x 2 DIXFSamples/RecurringIntegrationApp/Runtime
DIXFSamples/RecurringIntegrationApp/Runtime
DefaultDataFlowNetwork.cs
DefaultDataFlowNetwork.cs
257:265 (2%)
366:373 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 DIXFSamples/RecurringIntegrationApp/Views
DIXFSamples/RecurringIntegrationApp/Views
DIXFRecurringJobsProcessor.Designer.cs
SplashScreen.Designer.cs
14:21 
14:21 
view