awslabs / amazon-translate-browser-extension
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:
    • 8,967 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 468 duplicated lines
  • 50 duplicates
system5% (468 lines)
Duplication per Extension
yaml5% (440 lines)
scss17% (16 lines)
ts1% (12 lines)
Duplication per Component (primary)
ROOT5% (452 lines)
src/styles14% (16 lines)
src/contentScripts0% (0 lines)
src/api0% (0 lines)
src0% (0 lines)
src/util0% (0 lines)
src/components0% (0 lines)
src/_contracts0% (0 lines)
src/options0% (0 lines)
src/popup0% (0 lines)
src/background0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 50 duplicates...
Size#FoldersFilesLinesCode
18 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
314:331 (<1%)
353:370 (<1%)
view
17 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
279:295 (<1%)
355:371 (<1%)
view
16 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
279:294 (<1%)
316:331 (<1%)
view
15 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
3064:3078 (<1%)
3082:3096 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
118:126 (<1%)
184:192 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
3143:3151 (<1%)
3155:3163 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
1613:1621 (<1%)
1634:1642 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
8844:8852 (<1%)
8857:8865 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
1754:1762 (<1%)
1770:1778 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
304:312 (<1%)
344:352 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
8759:8767 (<1%)
8772:8780 (<1%)
view
9 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
3154:3162 (<1%)
3166:3174 (<1%)
view
8 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
4562:4569 (<1%)
4573:4580 (<1%)
view
8 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
3143:3150 (<1%)
3167:3174 (<1%)
view
8 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
271:278 (<1%)
346:353 (<1%)
view
8 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
4562:4569 (<1%)
4584:4591 (<1%)
view
8 x 2 src/styles
src/styles
global.scss
global.scss
26:33 (8%)
36:43 (8%)
view
8 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
4573:4580 (<1%)
4584:4591 (<1%)
view
8 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
410:417 (<1%)
427:434 (<1%)
view
7 x 2 ROOT
ROOT
pnpm-lock.yaml
pnpm-lock.yaml
1604:1610 (<1%)
1625:1631 (<1%)
view