facebookincubator / isometric_pattern_matcher
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
  • 9% duplication:
    • 2,258 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 222 duplicated lines
  • 7 duplicates
system9% (222 lines)
Duplication per Extension
h9% (118 lines)
cpp9% (104 lines)
Duplication per Component (primary)
IsometricPatternMatcher9% (222 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
35 x 2 IsometricPatternMatcher
IsometricPatternMatcher
183:230 (16%)
243:289 (16%)
view
29 x 2 IsometricPatternMatcher
IsometricPatternMatcher
95:136 (10%)
230:271 (10%)
view
15 x 2 IsometricPatternMatcher
IsometricPatternMatcher
162:194 (5%)
378:411 (5%)
view
9 x 2 IsometricPatternMatcher
IsometricPatternMatcher
34:42 (1%)
61:69 (1%)
view
9 x 2 IsometricPatternMatcher
IsometricPatternMatcher
151:159 (3%)
362:371 (3%)
view
8 x 2 IsometricPatternMatcher
IsometricPatternMatcher
310:317 (1%)
380:388 (1%)
view
6 x 2 IsometricPatternMatcher
IsometricPatternMatcher
42:47 (7%)
97:102 (7%)
view