facebookincubator / Bowler
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,907 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 108 duplicated lines
  • 6 duplicates
system5% (108 lines)
Duplication per Extension
py7% (108 lines)
Duplication per Component (primary)
bowler7% (108 lines)
website/core0% (0 lines)
website0% (0 lines)
website/static/css0% (0 lines)
website/pages/en0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
13 x 2 bowler
bowler
546:558 (2%)
619:631 (2%)
view
11 x 2 bowler
bowler
524:534 (1%)
593:603 (1%)
view
10 x 2 bowler
bowler
513:522 (1%)
571:580 (1%)
view
7 x 2 bowler
bowler
26:32 (29%)
36:42 (1%)
view
7 x 2 bowler
bowler
138:144 (6%)
151:157 (6%)
view
6 x 2 bowler
bowler
538:543 (<1%)
606:611 (<1%)
view