bottlerocket-os / bottlerocket-sdk
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
  • 20% duplication:
    • 947 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 194 duplicated lines
  • 9 duplicates
system20% (194 lines)
Duplication per Extension
toml54% (162 lines)
in42% (32 lines)
Duplication per Component (primary)
license-scan59% (66 lines)
configs/cargo-deny54% (60 lines)
license-tool48% (36 lines)
configs/rust42% (32 lines)
license-tool/src0% (0 lines)
license-scan/src0% (0 lines)

Duplication Between Components (50+ lines)

G configs/cargo-deny configs/cargo-deny license-scan license-scan configs/cargo-deny--license-scan 119 license-tool license-tool configs/cargo-deny--license-tool 58 license-scan--license-tool 72

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
30 x 2 configs/cargo-deny
license-scan
clarify.toml
clarify.toml
89:121 (27%)
41:73 (45%)
view
19 x 2 license-scan
license-tool
clarify.toml
clarify.toml
11:31 (28%)
1:21 (32%)
view
17 x 2 configs/cargo-deny
license-tool
clarify.toml
clarify.toml
89:107 (15%)
23:41 (29%)
view
17 x 2 license-scan
license-tool
clarify.toml
clarify.toml
41:59 (25%)
23:41 (29%)
view
16 x 2 configs/rust
configs/rust
in
config-aarch64.toml.in
config-x86_64.toml.in
9:27 (42%)
9:27 (42%)
view
15 x 2 configs/cargo-deny
license-scan
clarify.toml
clarify.toml
1:16 (13%)
1:16 (22%)
view
15 x 2 configs/cargo-deny
license-scan
clarify.toml
clarify.toml
28:44 (13%)
25:41 (22%)
view
6 x 2 configs/cargo-deny
license-tool
clarify.toml
clarify.toml
11:16 (5%)
1:6 (10%)
view
6 x 2 configs/cargo-deny
license-tool
clarify.toml
clarify.toml
28:34 (5%)
15:21 (10%)
view