aws-robotics / cloudwatch-common
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
  • 4% duplication:
    • 2,934 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 127 duplicated lines
  • 12 duplicates
system4% (127 lines)
Duplication per Extension
h3% (60 lines)
in52% (38 lines)
cmake40% (29 lines)
Duplication per Component (primary)
cloudwatch_logs_common/include17% (36 lines)
dataflow_lite/include2% (24 lines)
cloudwatch_logs_common55% (20 lines)
file_management52% (19 lines)
dataflow_lite52% (19 lines)
cloudwatch_metrics_common25% (9 lines)
cloudwatch_logs_common/src0% (0 lines)
dataflow_lite/src0% (0 lines)
cloudwatch_metrics_common/src0% (0 lines)
cloudwatch_metrics_common/include0% (0 lines)
file_management/src0% (0 lines)
file_management/include0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
18 x 2 cloudwatch_logs_common/i...logs_common/definitions
cloudwatch_logs_common/i.../cloudwatch_logs_common
ros_cloudwatch_logs_errors.h
ros_cloudwatch_logs_errors.h
22:59 (85%)
22:59 (90%)
view
10 x 2 cloudwatch_logs_common
dataflow_lite
in
cloudwatch_logs_commonConfigVersion.c...
dataflow_liteConfigVersion.cmake.in
1:11 (100%)
1:11 (100%)
view
10 x 2 cloudwatch_logs_common
file_management
cmake
cloudwatch_logs_commonConfigVersion.c...
file_managementConfigVersion.cmake
1:11 (100%)
1:11 (100%)
view
9 x 2 dataflow_lite
file_management
cmake
dataflow_liteConfigVersion.cmake
file_managementConfigVersion.cmake
3:11 (90%)
3:11 (90%)
view
9 x 2 cloudwatch_metrics_common
dataflow_lite
in
cloudwatch_metrics_commonConfigVersio...
dataflow_liteConfigVersion.cmake.in
3:11 (90%)
3:11 (90%)
view
9 x 2 cloudwatch_logs_common
cloudwatch_metrics_common
in
cloudwatch_logs_commonConfigVersion.c...
cloudwatch_metrics_commonConfigVersio...
3:11 (90%)
3:11 (90%)
view
9 x 2 dataflow_lite
file_management
in
dataflow_liteConfigVersion.cmake.in
file_managementConfigVersion.cmake.in
3:11 (90%)
3:11 (90%)
view
9 x 2 cloudwatch_metrics_common
file_management
in
cloudwatch_metrics_commonConfigVersio...
file_managementConfigVersion.cmake.in
3:11 (90%)
3:11 (90%)
view
9 x 2 cloudwatch_logs_common
file_management
in
cloudwatch_logs_commonConfigVersion.c...
file_managementConfigVersion.cmake.in
3:11 (90%)
3:11 (90%)
view
9 x 2 cloudwatch_logs_common
dataflow_lite
cmake
cloudwatch_logs_commonConfigVersion.c...
dataflow_liteConfigVersion.cmake
3:11 (90%)
3:11 (90%)
view
6 x 2 dataflow_lite/include/dataflow_lite/dataflow
dataflow_lite/include/dataflow_lite/dataflow
observed_queue.h
observed_queue.h
335:341 (3%)
346:352 (3%)
view
6 x 2 dataflow_lite/include/dataflow_lite/dataflow
dataflow_lite/include/dataflow_lite/dataflow
observed_queue.h
observed_queue.h
307:313 (3%)
317:323 (3%)
view