aws-samples / aws-robomaker-jetbot-ros
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
  • 15% duplication:
    • 390 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 4 duplicates
system15% (62 lines)
Duplication per Extension
urdf23% (24 lines)
xacro15% (14 lines)
yaml18% (12 lines)
launch10% (12 lines)
Duplication per Component (primary)
jetbot_description/urdf19% (38 lines)
jetbot_navigation/param15% (6 lines)
jetbot_slam/param100% (6 lines)
aws_example_gazebo_worlds/empty_world50% (6 lines)
aws_example_gazebo_worlds/track_world50% (6 lines)
aws_example_apps/line_following0% (0 lines)
aws_example_apps/simple_motion0% (0 lines)
aws_example_apps/slam_demo0% (0 lines)
jetbot_navigation/launch0% (0 lines)
jetbot_description/launch0% (0 lines)
jetbot_description/config0% (0 lines)
jetbot_slam/launch0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/jetbot_description/urdf
src/jetbot_description/urdf
urdf
jetbot.urdf
jetbot.urdf
79:93 (11%)
99:113 (11%)
view
7 x 2 src/jetbot_description/urdf
src/jetbot_description/urdf
xacro
jetbot.gazebo.xacro
jetbot.gazebo.xacro
7:13 (7%)
17:23 (7%)
view
6 x 2 src/aws_example_gazebo_worlds/empty_world/launch
src/aws_example_gazebo_worlds/track_world/launch
launch
world.launch
world.launch
10:15 (50%)
10:15 (50%)
view
6 x 2 src/jetbot_navigation/param
src/jetbot_slam/param
amcl_params.yaml
gmapping_params.yaml
4:11 (100%)
4:11 (100%)
view