novifinancial / librabft_simulator
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
  • 4% duplication:
    • 4,044 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 170 duplicated lines
  • 9 duplicates
system4% (170 lines)
Duplication per Extension
rs4% (158 lines)
toml6% (12 lines)
Duplication per Component (primary)
bft-driver/src11% (51 lines)
mempool/src19% (45 lines)
librabft-v2/src1% (28 lines)
network/src5% (16 lines)
crypto/src7% (12 lines)
librabft-v220% (6 lines)
bft-lib24% (6 lines)
bft-lib/src<1% (6 lines)
ROOT0% (0 lines)
crypto0% (0 lines)
bft-driver0% (0 lines)
network0% (0 lines)
mempool0% (0 lines)
node0% (0 lines)
node/src0% (0 lines)
store0% (0 lines)
store/src0% (0 lines)

Duplication Between Components (50+ lines)

G bft-driver/src bft-driver/src mempool/src mempool/src bft-driver/src--mempool/src 90

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
24 x 2 bft-driver/src
mempool/src
29:56 (40%)
24:51 (46%)
view
13 x 2 bft-driver/src
mempool/src
64:84 (22%)
55:75 (25%)
view
8 x 2 bft-driver/src
mempool/src
2:11 (13%)
1:10 (15%)
view
8 x 2 network/src
network/src
2:9 (5%)
2:9 (9%)
view
8 x 2 librabft-v2/src
librabft-v2/src
774:783 (1%)
787:796 (1%)
view
6 x 2 librabft-v2/src
librabft-v2/src
589:594 (<1%)
601:606 (<1%)
view
6 x 2 crypto/src
crypto/src
100:106 (3%)
136:142 (3%)
view
6 x 2 bft-lib
librabft-v2
5:11 (24%)
5:11 (20%)
view
6 x 2 bft-driver/src
bft-lib/src
162:167 (4%)
244:249 (3%)
view