github / pages-gem
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
  • 10% duplication:
    • 981 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 102 duplicated lines
  • 9 duplicates
system10% (102 lines)
Duplication per Extension
yml96% (57 lines)
rb5% (45 lines)
Duplication per Component (primary)
spec14% (102 lines)
lib0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
19 x 2 spec/fixtures
spec/fixtures
2:20 (95%)
1:19 (95%)
view
19 x 2 spec/fixtures
spec/fixtures
1:19 (100%)
1:19 (95%)
view
19 x 2 spec/fixtures
spec/fixtures
1:19 (100%)
2:20 (95%)
view
10 x 2 spec/github-pages
spec/github-pages
221:232 (4%)
251:262 (4%)
view
7 x 2 spec/github-pages
spec/github-pages
252:259 (3%)
264:271 (3%)
view
7 x 2 spec/github-pages
spec/github-pages
222:229 (3%)
264:271 (3%)
view
6 x 2 spec/github-pages
spec/github-pages
6:11 (2%)
144:149 (2%)
view
6 x 2 spec/github-pages
spec/github-pages
144:149 (2%)
171:176 (2%)
view
6 x 2 spec/github-pages
spec/github-pages
6:11 (2%)
171:176 (2%)
view