aws-deepracer / aws-deepracer-ctrl-pkg
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
  • 16% duplication:
    • 852 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 140 duplicated lines
  • 10 duplicates
system16% (140 lines)
Duplication per Extension
cpp13% (99 lines)
hpp33% (41 lines)
Duplication per Component (primary)
src13% (99 lines)
include/ctrl_pkg33% (41 lines)
launch0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
16 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_state.cpp
ctrl_state.cpp
344:359 (3%)
470:485 (3%)
view
14 x 2 ctrl_pkg/include/ctrl_pkg
ctrl_pkg/include/ctrl_pkg
ctrl_state.hpp
ctrl_state.hpp
128:144 (13%)
164:180 (13%)
view
13 x 2 ctrl_pkg/include/ctrl_pkg
ctrl_pkg/include/ctrl_pkg
ctrl_state.hpp
ctrl_state.hpp
61:75 (12%)
128:142 (12%)
view
13 x 2 ctrl_pkg/include/ctrl_pkg
ctrl_pkg/include/ctrl_pkg
ctrl_state.hpp
ctrl_state.hpp
61:75 (12%)
164:178 (12%)
view
9 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_state.cpp
ctrl_state.cpp
83:92 (2%)
422:431 (2%)
view
9 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_state.cpp
ctrl_state.cpp
321:330 (2%)
422:431 (2%)
view
9 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_state.cpp
ctrl_state.cpp
83:92 (2%)
321:330 (2%)
view
8 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_state.cpp
ctrl_state.cpp
71:81 (1%)
309:319 (1%)
view
6 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_node.cpp
ctrl_node.cpp
122:127 (1%)
130:135 (1%)
view
6 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_node.cpp
ctrl_node.cpp
140:145 (1%)
148:153 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
19 x 2 ctrl_pkg/src
ctrl_pkg/src
ctrl_state.cpp
ctrl_state.cpp
343:362 
469:488 
view