aws-robotics / aws-robomaker-sample-application-navigation
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:
    • 515 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 50 duplicated lines
  • 4 duplicates
system9% (50 lines)
Duplication per Extension
launch24% (38 lines)
py3% (12 lines)
Duplication per Component (primary)
simulation_ws/src/navigation_simulation/launch18% (24 lines)
robot_ws/src/navigation_robot/launch51% (14 lines)
robot_ws/src/navigation_robot/nodes11% (12 lines)
robot_ws/src/navigation_robot/src0% (0 lines)
robot_ws/src/navigation_robot0% (0 lines)
simulation_ws/src/aws_robomaker_simulation_common/src0% (0 lines)
simulation_ws/src/aws_robomaker_simulation_common0% (0 lines)
simulation_ws/src/aws_robomaker_simulation_common/nodes0% (0 lines)
map_config0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
7 x 2 robot_ws/src/navigation_robot/launch
robot_ws/src/navigation_robot/launch
launch
await_commands.launch
rotate.launch
5:34 (100%)
5:30 (87%)
view
6 x 2 simulation_ws/src/navigation_simulation/launch
simulation_ws/src/navigation_simulation/launch
launch
bookstore_turtlebot_navigation.launch
worldforge_turtlebot_navigation.launch
48:56 (21%)
25:33 (28%)
view
6 x 2 simulation_ws/src/navigation_simulation/launch
simulation_ws/src/navigation_simulation/launch
launch
bookstore_turtlebot_navigation.launch
small_house_turtlebot_navigation.launch
63:71 (21%)
55:63 (23%)
view
6 x 2 robot_ws/src/navigation_robot/nodes
robot_ws/src/navigation_robot/nodes
monitor_distance_to_goal.py
monitor_obstacle_distance.py
43:50 (22%)
47:54 (18%)
view