fbsamples / rusty-bunny
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
  • 22% duplication:
    • 175 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 39 duplicated lines
  • 10 duplicates
system22% (39 lines)
Duplication per Extension
rs23% (39 lines)
Duplication per Component (primary)
src/utils21% (33 lines)
src46% (6 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src/utils
src/utils
google.rs
twitter.rs
1:13 (30%)
1:13 (15%)
view
9 x 2 src/utils
src/utils
github.rs
twitter.rs
1:13 (23%)
1:13 (15%)
view
9 x 2 src/utils
src/utils
github.rs
google.rs
1:13 (23%)
1:13 (30%)
view
6 x 2 src
src/utils
main.rs
mod.rs
1:6 (46%)
1:6 (22%)
view
6 x 2 src/utils
src/utils
mod.rs
twitter.rs
1:6 (22%)
1:6 (10%)
view
6 x 2 src/utils
src/utils
github.rs
mod.rs
1:6 (15%)
1:6 (22%)
view
6 x 2 src
src/utils
main.rs
twitter.rs
1:6 (46%)
1:6 (10%)
view
6 x 2 src
src/utils
main.rs
google.rs
1:6 (46%)
1:6 (20%)
view
6 x 2 src
src/utils
main.rs
github.rs
1:6 (46%)
1:6 (15%)
view
6 x 2 src/utils
src/utils
google.rs
mod.rs
1:6 (20%)
1:6 (22%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 src/utils
src/utils
google.rs
google.rs
27:33 
35:41 
view
6 x 2 src/utils
src/utils
github.rs
github.rs
40:46 
49:55 
view
6 x 2 src/utils
src/utils
twitter.rs
twitter.rs
53:59 
62:68 
view