aws-robotics / cloudwatchlogs-ros1
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:
    • 603 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 47 duplicated lines
  • 5 duplicates
system7% (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
351:364 (4%)
398:411 (4%)
view
9 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
359:370 (2%)
383:394 (2%)
view
7 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
352:358 (2%)
375:381 (2%)
view
7 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
375:381 (2%)
399:405 (2%)
view
6 x 2 cloudwatch_logger/src
cloudwatch_logger/src
log_node_param_helper.cpp
log_node_param_helper.cpp
383:388 (1%)
406:411 (1%)
view