awslabs / aws-verification-model-for-libcrypto
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
  • 5% duplication:
    • 1,456 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 80 duplicated lines
  • 5 duplicates
system5% (80 lines)
Duplication per Extension
c6% (74 lines)
h1% (6 lines)
Duplication per Component (primary)
source6% (74 lines)
include/openssl1% (6 lines)
stubs0% (0 lines)
include0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
12 x 2 source
source
evp_override.c
evp_override.c
342:357 (2%)
371:386 (2%)
view
9 x 2 source
source
evp_override.c
evp_override.c
558:567 (1%)
594:603 (1%)
view
7 x 2 source
source
evp_override.c
evp_override.c
569:583 (1%)
607:621 (1%)
view
6 x 2 include/openssl
source
evp.h
evp_override.c
135:140 (5%)
442:447 (1%)
view
6 x 2 source
source
evp_override.c
evp_override.c
93:99 (1%)
116:122 (1%)
view