awslabs / aws-crt-dotnet
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
  • 13% duplication:
    • 3,363 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 450 duplicated lines
  • 64 duplicates
system13% (450 lines)
Duplication per Extension
c18% (201 lines)
yml53% (173 lines)
cs3% (76 lines)
Duplication per Component (primary)
native/src17% (201 lines)
codebuild69% (141 lines)
aws-crt/IO13% (40 lines)
codebuild/cd26% (32 lines)
aws-crt-auth7% (24 lines)
aws-crt1% (12 lines)
tools/Elasticurl0% (0 lines)
aws-crt-http0% (0 lines)
aws-crt-cal0% (0 lines)
aws-crt-checksums0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 64 duplicates...
Size#FoldersFilesLinesCode
25 x 2 native/src
native/src
tls_ctx_options.c
tls_ctx_options.c
52:77 (18%)
90:115 (18%)
view
22 x 2 native/src
native/src
signing.c
signing.c
408:438 (5%)
480:510 (5%)
view
16 x 2 native/src
native/src
signing.c
signing.c
351:374 (4%)
482:505 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
449:474 (4%)
519:544 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
321:346 (4%)
519:544 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
289:312 (4%)
482:505 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
378:403 (4%)
449:474 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
289:312 (4%)
351:374 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
351:374 (4%)
410:433 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
321:346 (4%)
378:403 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
289:312 (4%)
410:433 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
321:346 (4%)
449:474 (4%)
view
16 x 2 native/src
native/src
signing.c
signing.c
378:403 (4%)
519:544 (4%)
view
11 x 2 native/src
native/src
tls_ctx_options.c
tls_ctx_options.c
13:24 (8%)
52:63 (8%)
view
11 x 2 native/src
native/src
tls_ctx_options.c
tls_ctx_options.c
13:24 (8%)
90:101 (8%)
view
10 x 2 aws-crt/IO
aws-crt/IO
TlsContext.cs
TlsContext.cs
139:148 (7%)
155:164 (7%)
view
10 x 2 aws-crt/IO
aws-crt/IO
TlsContext.cs
TlsContext.cs
94:104 (7%)
106:116 (7%)
view
9 x 2 codebuild/cd
codebuild/cd
promote-release.yml
publish-rc.yml
1:11 (69%)
1:11 (52%)
view
8 x 2 codebuild
codebuild
linux-clang3-x64.yml
linux-gcc-7x-x64.yml
18:25 (36%)
18:25 (34%)
view
8 x 2 codebuild
codebuild
linux-clang3-x64.yml
linux-gcc-5x-x64.yml
18:25 (36%)
18:25 (34%)
view