freertos / corePKCS11
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
  • 8% duplication:
    • 3,417 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 294 duplicated lines
  • 21 duplicates
system8% (294 lines)
Duplication per Extension
c7% (230 lines)
yml68% (64 lines)
Duplication per Component (primary)
source/portable/mbedtls9% (230 lines)
tools/cmock/pkcs_wrapper91% (32 lines)
tools/cmock/pkcs_mbedtls76% (32 lines)
tools/cmock0% (0 lines)
tools0% (0 lines)
source0% (0 lines)
source/include0% (0 lines)
source/portable/os/freertos_winsim0% (0 lines)
source/portable/os/posix0% (0 lines)
source/portable/os0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G tools/cmock/pkcs_mbedtls tools/cmock/pkcs_mbedtls tools/cmock/pkcs_wrapper tools/cmock/pkcs_wrapper tools/cmock/pkcs_mbedtls--tools/cmock/pkcs_wrapper 64

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 21 duplicates...
Size#FoldersFilesLinesCode
16 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
2381:2412 (<1%)
2504:2535 (<1%)
view
12 x 2 tools/cmock/pkcs_mbedtls
tools/cmock/pkcs_wrapper
project.yml
project.yml
4:15 (28%)
4:15 (34%)
view
10 x 2 tools/cmock/pkcs_mbedtls
tools/cmock/pkcs_wrapper
project.yml
project.yml
17:26 (23%)
16:25 (28%)
view
10 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
2445:2457 (<1%)
2568:2580 (<1%)
view
10 x 2 tools/cmock/pkcs_mbedtls
tools/cmock/pkcs_wrapper
project.yml
project.yml
30:39 (23%)
26:35 (28%)
view
9 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
3869:3880 (<1%)
4468:4479 (<1%)
view
9 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
3971:3982 (<1%)
4490:4501 (<1%)
view
9 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
2420:2434 (<1%)
2543:2557 (<1%)
view
9 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
4112:4127 (<1%)
4645:4659 (<1%)
view
8 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
733:746 (<1%)
2381:2394 (<1%)
view
8 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
3826:3837 (<1%)
3842:3853 (<1%)
view
8 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
733:746 (<1%)
2504:2517 (<1%)
view
7 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
4959:4967 (<1%)
4995:5003 (<1%)
view
7 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
4971:4979 (<1%)
5007:5015 (<1%)
view
7 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
547:563 (<1%)
744:760 (<1%)
view
6 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
738:746 (<1%)
936:943 (<1%)
view
6 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
1503:1508 (<1%)
1524:1529 (<1%)
view
6 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
2279:2290 (<1%)
2352:2363 (<1%)
view
6 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
936:943 (<1%)
2386:2394 (<1%)
view
6 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
5074:5081 (<1%)
5190:5197 (<1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
3868:3881 
4467:4480 
view
11 x 2 source/portable/mbedtls
source/portable/mbedtls
core_pkcs11_mbedtls.c
core_pkcs11_mbedtls.c
3970:3983 
4489:4502 
view