awslabs / aws-crt-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
  • 3% duplication:
    • 6,120 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 193 duplicated lines
  • 21 duplicates
system3% (193 lines)
Duplication per Extension
yml49% (91 lines)
cpp1% (58 lines)
h1% (44 lines)
Duplication per Component (primary)
codebuild28% (91 lines)
include/aws1% (44 lines)
source/iot11% (28 lines)
source/http3% (18 lines)
source/io1% (12 lines)
cmake0% (0 lines)
source/crypto0% (0 lines)
source0% (0 lines)
source/auth0% (0 lines)
source/mqtt0% (0 lines)
docsrc0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 21 duplicates...
Size#FoldersFilesLinesCode
14 x 2 source/iot
source/iot
MqttClient.cpp
MqttClient.cpp
32:48 (5%)
56:72 (5%)
view
13 x 2 include/aws/crt
include/aws/crt
Optional.h
Optional.h
82:108 (14%)
113:139 (14%)
view
9 x 2 codebuild
codebuild
linux-clang6-x64.yml
linux-integration-tests.yml
1:10 (40%)
1:10 (33%)
view
8 x 2 codebuild
codebuild
linux-clang6-x64.yml
linux-integration-tests.yml
12:19 (36%)
15:22 (29%)
view
7 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-6x-x64.yml
12:18 (41%)
13:19 (38%)
view
7 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-5x-x64.yml
12:18 (41%)
13:19 (38%)
view
7 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-7x-x64.yml
12:18 (41%)
13:19 (38%)
view
7 x 2 codebuild
codebuild
linux-gcc-6x-x64.yml
linux-gcc-7x-x64.yml
13:19 (38%)
13:19 (38%)
view
7 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-6x-x64.yml
13:19 (38%)
13:19 (38%)
view
7 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-7x-x64.yml
13:19 (38%)
13:19 (38%)
view
7 x 2 codebuild
codebuild
linux-gcc-4x-x64.yml
linux-gcc-4x-x86.yml
8:14 (41%)
23:29 (22%)
view
6 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-6x-x64.yml
1:7 (33%)
1:7 (33%)
view
6 x 2 source/http
source/http
HttpProxyStrategy.cpp
HttpProxyStrategy.cpp
100:112 (5%)
128:140 (5%)
view
6 x 2 source/http
source/http
HttpProxyStrategy.cpp
HttpProxyStrategy.cpp
75:87 (5%)
100:112 (5%)
view
6 x 2 include/aws/crt
include/aws/crt
StringView.h
StringView.h
290:302 (1%)
384:396 (1%)
view
6 x 2 codebuild
codebuild
linux-gcc-6x-x64.yml
linux-gcc-7x-x64.yml
1:7 (33%)
1:7 (33%)
view
6 x 2 source/http
source/http
HttpProxyStrategy.cpp
HttpProxyStrategy.cpp
75:87 (5%)
128:140 (5%)
view
6 x 2 codebuild
codebuild
linux-gcc-5x-x64.yml
linux-gcc-7x-x64.yml
1:7 (33%)
1:7 (33%)
view
6 x 2 source/io
source/io
Uri.cpp
Uri.cpp
52:62 (9%)
74:84 (9%)
view
6 x 2 include/aws/crt
include/aws/crt
StringView.h
StringView.h
290:302 (1%)
504:516 (1%)
view