microsoft / Azure_Kinect_ROS_Driver
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
  • 7% duplication:
    • 1,982 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 146 duplicated lines
  • 6 duplicates
system7% (146 lines)
Duplication per Extension
cmake15% (62 lines)
cpp5% (56 lines)
launch14% (28 lines)
Duplication per Component (primary)
cmake15% (62 lines)
src5% (56 lines)
launch14% (28 lines)
ROOT0% (0 lines)
include/azure_kinect_ros_driver0% (0 lines)
urdf0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
17 x 2 src
src
k4a_ros_device.cpp
k4a_ros_device.cpp
1348:1375 (2%)
1395:1422 (2%)
view
14 x 2 launch
launch
launch
driver.launch
kinect_rgbd.launch
7:24 (24%)
7:24 (14%)
view
12 x 2 cmake
cmake
cmake
Installk4a.cmake
k4a-install.cmake
57:69 (18%)
8:20 (66%)
view
12 x 2 cmake
cmake
cmake
Findk4a.cmake
Findk4abt.cmake
62:75 (5%)
20:33 (14%)
view
11 x 2 src
src
k4a_calibration_transform_data.cpp
k4a_calibration_transform_data.cpp
267:304 (6%)
319:356 (6%)
view
7 x 2 cmake
cmake
cmake
Findk4a.cmake
Findk4abt.cmake
208:215 (3%)
95:102 (8%)
view