aws / aws-nitro-enclaves-cli
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
  • 40% duplication:
    • 14,950 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 5,993 duplicated lines
  • 854 duplicates
system40% (5,993 lines)
Duplication per Extension
html92% (4,462 lines)
rs12% (997 lines)
spec92% (422 lines)
c5% (60 lines)
hbs72% (40 lines)
toml8% (12 lines)
Duplication per Component (primary)
ROOT89% (4,502 lines)
src14% (877 lines)
SOURCES100% (211 lines)
SPECS100% (211 lines)
drivers4% (60 lines)
eif_defs9% (48 lines)
eif_utils6% (42 lines)
enclave_build5% (36 lines)
vsock_proxy1% (6 lines)
eif_loader0% (0 lines)
bootstrap0% (0 lines)
include0% (0 lines)

Duplication Between Components (50+ lines)

G SOURCES SOURCES SPECS SPECS SOURCES--SPECS 422

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 854 duplicates...
Size#FoldersFilesLinesCode
211 x 2 SOURCES
SPECS
spec
aws-nitro-enclaves-cli.spec
aws-nitro-enclaves-cli.spec
1:271 (100%)
1:271 (100%)
view
174 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
433:640 (3%)
843:1050 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
1265:1471 (3%)
1478:1685 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
3228:3434 (3%)
4070:4276 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
1056:1262 (3%)
3439:3645 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
1056:1262 (3%)
3228:3434 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
3228:3434 (3%)
3652:3858 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
1056:1262 (3%)
3652:3858 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
1056:1262 (3%)
4070:4276 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
3439:3645 (3%)
4070:4276 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
3439:3645 (3%)
3652:3858 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
3652:3858 (3%)
4070:4276 (3%)
view
173 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
3228:3434 (3%)
3439:3645 (3%)
view
172 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
845:1050 (3%)
1057:1262 (3%)
view
172 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
845:1050 (3%)
4479:4684 (3%)
view
172 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
435:640 (3%)
3440:3645 (3%)
view
172 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
845:1050 (3%)
4071:4276 (3%)
view
172 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
3229:3434 (3%)
4479:4684 (3%)
view
172 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
845:1050 (3%)
3653:3858 (3%)
view
172 x 2 ROOT
ROOT
THIRD_PARTY_LICENSES_RUST_CRATES.html
THIRD_PARTY_LICENSES_RUST_CRATES.html
435:640 (3%)
3229:3434 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 src/enclave_proc
src/enclave_proc
socket.rs
connection_listener.rs
226:237 
330:341 
view