awslabs / qldb-workbench
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
  • 6% duplication:
    • 2,029 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 126 duplicated lines
  • 11 duplicates
system6% (126 lines)
Duplication per Extension
tsx7% (126 lines)
Duplication per Component (primary)
src/core7% (126 lines)
src0% (0 lines)
src/mode0% (0 lines)
assets0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
10 x 2 src/core
src/core
Composer.tsx
Composer.tsx
71:80 (10%)
92:101 (10%)
view
9 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
240:248 (2%)
277:285 (2%)
view
9 x 2 src/core
src/core
AppBar.tsx
AppBar.tsx
250:258 (2%)
304:312 (2%)
view
9 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
347:355 (2%)
338:346 (2%)
view
8 x 2 src/core
src/core
AppBar.tsx
AppBar.tsx
241:248 (2%)
295:302 (2%)
view
8 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
295:302 (2%)
278:285 (2%)
view
8 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
304:311 (2%)
287:294 (2%)
view
8 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
250:257 (2%)
287:294 (2%)
view
6 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
75:80 (1%)
96:101 (1%)
view
6 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
16:21 (1%)
32:37 (1%)
view
6 x 2 src/core
src/core
AppBar.tsx
DrawerItems.tsx
233:238 (1%)
270:275 (1%)
view