awslabs / aws-lambda-cpp
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,881 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 124 duplicated lines
  • 10 duplicates
system4% (124 lines)
Duplication per Extension
h4% (112 lines)
cpp3% (12 lines)
Duplication per Component (primary)
src4% (124 lines)
cmake0% (0 lines)
ci/codebuild0% (0 lines)
include/aws/lambda-runtime0% (0 lines)
include/aws/logging0% (0 lines)
include/aws/http0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
10 x 2 src
src
backward.h
backward.h
874:891 (<1%)
1009:1027 (<1%)
view
9 x 2 src
src
backward.h
backward.h
2363:2376 (<1%)
2822:2835 (<1%)
view
8 x 2 src
src
backward.h
backward.h
860:868 (<1%)
902:910 (<1%)
view
8 x 2 src
src
backward.h
backward.h
1131:1144 (<1%)
3261:3276 (<1%)
view
6 x 2 src
src
backward.h
backward.h
1162:1175 (<1%)
3326:3335 (<1%)
view
6 x 2 src
src
backward.h
backward.h
874:882 (<1%)
916:925 (<1%)
view
6 x 2 src
src
backward.h
backward.h
916:925 (<1%)
1009:1018 (<1%)
view
6 x 2 src
src
runtime.cpp
runtime.cpp
182:187 (1%)
205:210 (1%)
view
6 x 2 src
src
backward.h
backward.h
1193:1215 (<1%)
1919:1948 (<1%)
view
6 x 2 src
src
backward.h
backward.h
3289:3294 (<1%)
3303:3308 (<1%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 src
src
backward.h
backward.h
876:889 
1012:1025 
view
7 x 2 src
src
backward.h
backward.h
1133:1140 
3263:3270 
view
6 x 2 src
src
backward.h
backward.h
1551:1557 
2098:2104 
view