microsoft / inventory-hub-java-on-azure
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
  • 9% duplication:
    • 1,089 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 108 duplicated lines
  • 7 duplicates
system9% (108 lines)
Duplication per Extension
java13% (108 lines)
Duplication per Component (primary)
function-apps/Point-Of-Transaction/src/main/java/org/inventory/hub50% (43 lines)
function-apps/Append-Transaction/src/main/java/org/inventory/hub48% (34 lines)
function-apps/Notify-Inventory/src/main/java/org/inventory/hub50% (17 lines)
dashboard-web-app/src/main/java/org/inventory/hub/controller9% (14 lines)
dashboard-web-app/src/main/java/org/inventory/hub0% (0 lines)
dashboard-web-app/src/main/java/org/inventory/hub/dao0% (0 lines)
dashboard-web-app/src/main/java/org/inventory/hub/event0% (0 lines)
dashboard-web-app/src/main/java/org/inventory/hub/model0% (0 lines)
dashboard-web-app/src/main/java/org/inventory/hub/security0% (0 lines)
dashboard-web-app/src/main/resources/static/Scripts0% (0 lines)
dashboard-web-app/src/main/resources/static/Views0% (0 lines)
dashboard-web-app/src/main/resources/static0% (0 lines)
function-apps/Update-Product-Inventory/src/main/java/org/inventory/hub0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
17 x 2 function-apps/Append-Tra.../java/org/inventory/hub
function-apps/Append-Tra.../java/org/inventory/hub
TransactionDocument.java
TransactionEvent.java
9:29 (89%)
14:34 (62%)
view
11 x 2 function-apps/Notify-Inv.../java/org/inventory/hub
function-apps/Point-Of-T.../java/org/inventory/hub
NotifyInventoryUpdate.java
POT.java
58:71 (32%)
109:122 (12%)
view
9 x 2 function-apps/Point-Of-T.../java/org/inventory/hub
function-apps/Point-Of-T.../java/org/inventory/hub
POT.java
POT.java
57:65 (10%)
80:88 (10%)
view
7 x 2 function-apps/Point-Of-T.../java/org/inventory/hub
function-apps/Point-Of-T.../java/org/inventory/hub
POT.java
POT.java
69:76 (8%)
92:99 (8%)
view
7 x 2 dashboard-web-app/src/ma...nventory/hub/controller
dashboard-web-app/src/ma...nventory/hub/controller
ProductsInventoryController.java
ProductsInventoryController.java
124:130 (5%)
185:191 (5%)
view
6 x 2 function-apps/Append-Tra.../java/org/inventory/hub
function-apps/Notify-Inv.../java/org/inventory/hub
TransactionEvent.java
NotifyInventoryUpdate.java
14:19 (22%)
51:56 (17%)
view
6 x 2 function-apps/Append-Tra.../java/org/inventory/hub
function-apps/Notify-Inv.../java/org/inventory/hub
TransactionDocument.java
NotifyInventoryUpdate.java
9:14 (31%)
51:56 (17%)
view