awslabs / open-data-registry-browser
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,385 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 72 duplicated lines
  • 5 duplicates
system5% (72 lines)
Duplication per Extension
js5% (38 lines)
hbs11% (34 lines)
Duplication per Component (primary)
ROOT5% (38 lines)
src14% (34 lines)
src/js0% (0 lines)
src/partials0% (0 lines)
src/css0% (0 lines)
src/asdi0% (0 lines)
src/collabs0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
17 x 2 src
src
hbs
detail.hbs
examples.hbs
43:62 (18%)
16:36 (51%)
view
9 x 2 ROOT
ROOT
gulpfile.js
gulpfile.js
705:720 (1%)
796:811 (1%)
view
8 x 2 ROOT
ROOT
gulpfile.js
gulpfile.js
511:524 (1%)
705:719 (1%)
view
8 x 2 ROOT
ROOT
gulpfile.js
gulpfile.js
511:524 (1%)
796:810 (1%)
view
6 x 2 ROOT
ROOT
gulpfile.js
gulpfile.js
621:626 (<1%)
630:635 (<1%)
view