aws-robotics / aws-robomaker-sample-application-cloudwatch
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
  • 12% duplication:
    • 600 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 72 duplicated lines
  • 7 duplicates
system12% (72 lines)
Duplication per Extension
launch21% (38 lines)
py9% (34 lines)
Duplication per Component (primary)
robot_ws/src/cloudwatch_robot/nodes22% (34 lines)
simulation_ws/src/cloudwatch_simulation/launch18% (24 lines)
robot_ws/src/cloudwatch_robot/launch29% (14 lines)
robot_ws/src/cloudwatch_robot/config0% (0 lines)
robot_ws/src/cloudwatch_robot/src0% (0 lines)
robot_ws/src/cloudwatch_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 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
8 x 2 robot_ws/src/cloudwatch_robot/nodes
robot_ws/src/cloudwatch_robot/nodes
monitor_distance_to_goal.py
monitor_obstacle_distance.py
49:57 (19%)
53:61 (17%)
view
7 x 2 robot_ws/src/cloudwatch_robot/launch
robot_ws/src/cloudwatch_robot/launch
launch
await_commands.launch
rotate.launch
1:30 (100%)
1:26 (87%)
view
6 x 2 robot_ws/src/cloudwatch_robot/nodes
robot_ws/src/cloudwatch_robot/nodes
monitor_distance_to_goal.py
monitor_obstacle_distance.py
72:79 (14%)
76:83 (12%)
view
6 x 2 simulation_ws/src/cloudwatch_simulation/launch
simulation_ws/src/cloudwatch_simulation/launch
launch
bookstore_turtlebot_navigation.launch
worldforge_turtlebot_navigation.launch
44:52 (21%)
21:29 (28%)
view
6 x 2 robot_ws/src/cloudwatch_robot/nodes
robot_ws/src/cloudwatch_robot/nodes
monitor_obstacle_distance.py
monitor_speed.py
53:59 (12%)
38:44 (14%)
view
6 x 2 robot_ws/src/cloudwatch_robot/nodes
robot_ws/src/cloudwatch_robot/nodes
monitor_distance_to_goal.py
monitor_speed.py
49:55 (14%)
38:44 (14%)
view
6 x 2 simulation_ws/src/cloudwatch_simulation/launch
simulation_ws/src/cloudwatch_simulation/launch
launch
bookstore_turtlebot_navigation.launch
small_house_turtlebot_navigation.launch
59:67 (21%)
51:59 (23%)
view