microsoft / vscode-node-sqlite3
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
  • 4% duplication:
    • 2,539 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 119 duplicated lines
  • 8 duplicates
system4% (119 lines)
Duplication per Extension
cc7% (105 lines)
h2% (14 lines)
Duplication per Component (primary)
src5% (119 lines)
ROOT0% (0 lines)
benchmark0% (0 lines)
cloudformation0% (0 lines)
lib0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
17 x 2 src
src
database.cc
database.cc
597:622 (3%)
709:734 (3%)
view
10 x 2 src
src
backup.cc
statement.cc
95:116 (3%)
929:949 (1%)
view
8 x 2 src
src
statement.cc
statement.cc
431:442 (1%)
505:516 (1%)
view
7 x 2 src
src
backup.h
statement.h
138:146 (7%)
146:154 (4%)
view
7 x 2 src
src
backup.cc
database.cc
83:92 (2%)
48:56 (1%)
view
7 x 2 src
src
database.cc
statement.cc
48:56 (1%)
917:926 (1%)
view
7 x 2 src
src
backup.cc
statement.cc
83:92 (2%)
917:926 (1%)
view
7 x 2 src
src
database.cc
database.cc
562:568 (1%)
671:677 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
23 x 2 src
src
database.cc
database.cc
594:623 
706:735 
view