aws-samples / dynamodb-history-storer
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
  • 12% duplication:
    • 631 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 81 duplicated lines
  • 8 duplicates
system12% (81 lines)
Duplication per Extension
js15% (57 lines)
yml8% (24 lines)
Duplication per Component (primary)
tst27% (57 lines)
ROOT8% (24 lines)
src0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
template.yml
template.yml
99:110 (4%)
122:133 (4%)
view
11 x 2 tst
tst
index.js
index.js
73:83 (5%)
109:119 (5%)
view
10 x 2 tst
tst
index.js
index.js
123:133 (4%)
159:169 (4%)
view
9 x 2 tst
tst
index.js
index.js
77:86 (4%)
160:169 (4%)
view
9 x 2 tst
tst
index.js
index.js
77:86 (4%)
124:133 (4%)
view
8 x 2 tst
tst
index.js
index.js
104:111 (3%)
151:158 (3%)
view
7 x 2 tst
tst
index.js
index.js
113:119 (3%)
160:166 (3%)
view
7 x 2 tst
tst
index.js
index.js
113:119 (3%)
124:130 (3%)
view