aws-solutions / aws-network-firewall-deployment-automations-for-aws-transit-gateway
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
  • 7% duplication:
    • 1,913 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 145 duplicated lines
  • 14 duplicates
system7% (145 lines)
Duplication per Extension
ts7% (145 lines)
Duplication per Component (primary)
source/lib15% (145 lines)
source/networkFirewallAutomation/lib0% (0 lines)
source/networkFirewallAutomation/lib/service0% (0 lines)
source/networkFirewallAutomation/lib/common0% (0 lines)
source/networkFirewallAutomation/lib/common/configReader0% (0 lines)
source/networkFirewallAutomation0% (0 lines)
source0% (0 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
14 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
653:666 (1%)
929:942 (1%)
view
10 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
703:712 (1%)
771:780 (1%)
view
9 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
1098:1106 (<1%)
1126:1134 (<1%)
view
9 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
679:688 (<1%)
957:966 (<1%)
view
9 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
1073:1081 (<1%)
1098:1106 (<1%)
view
9 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
1073:1081 (<1%)
1126:1134 (<1%)
view
7 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
361:367 (<1%)
414:420 (<1%)
view
7 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
344:350 (<1%)
414:420 (<1%)
view
7 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
361:367 (<1%)
398:404 (<1%)
view
7 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
344:350 (<1%)
398:404 (<1%)
view
7 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
398:404 (<1%)
414:420 (<1%)
view
7 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
344:350 (<1%)
361:367 (<1%)
view
6 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
809:816 (<1%)
913:920 (<1%)
view
6 x 2 source/lib
source/lib
network-firewall-automation-solution-...
network-firewall-automation-solution-...
669:674 (<1%)
944:949 (<1%)
view