aws-samples / aws-iot-securetunneling-localproxy
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
  • 1% duplication:
    • 2,251 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 27 duplicated lines
  • 6 duplicates
system1% (27 lines)
Duplication per Extension
cpp1% (27 lines)
Duplication per Component (primary)
src1% (27 lines)
src/config0% (0 lines)
resources0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src
src
TcpAdapterProxy.cpp
TcpAdapterProxy.cpp
1689:1697 (<1%)
1742:1750 (<1%)
view
7 x 2 src
src
TcpAdapterProxy.cpp
TcpAdapterProxy.cpp
1689:1697 (<1%)
1760:1768 (<1%)
view
7 x 2 src
src
TcpAdapterProxy.cpp
TcpAdapterProxy.cpp
1742:1750 (<1%)
1760:1768 (<1%)
view
6 x 2 src
src
TcpAdapterProxy.cpp
TcpAdapterProxy.cpp
1670:1676 (<1%)
1760:1766 (<1%)
view
6 x 2 src
src
TcpAdapterProxy.cpp
TcpAdapterProxy.cpp
1670:1676 (<1%)
1742:1748 (<1%)
view
6 x 2 src
src
TcpAdapterProxy.cpp
TcpAdapterProxy.cpp
1670:1676 (<1%)
1689:1695 (<1%)
view