aws-robotics / cloudwatchlogs-ros2
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
  • 8% duplication:
    • 587 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 47 duplicated lines
  • 5 duplicates
system8% (47 lines)
Duplication per Extension
cpp10% (47 lines)
Duplication per Component (primary)
src10% (47 lines)
launch0% (0 lines)
config0% (0 lines)
include/cloudwatch_logger0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
14 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
326:339 (4%)
374:387 (4%)
view
9 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
334:345 (3%)
359:370 (3%)
view
7 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
327:333 (2%)
351:357 (2%)
view
7 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
351:357 (2%)
375:381 (2%)
view
6 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
359:364 (2%)
382:387 (2%)
view