microsoft / vscode-java-debug
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
  • 3% duplication:
    • 2,267 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 78 duplicated lines
  • 5 duplicates
system3% (78 lines)
Duplication per Extension
ts3% (78 lines)
Duplication per Component (primary)
src3% (78 lines)
scripts/build0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
13 x 2 src
src
mainClassPicker.ts
mainClassPicker.ts
25:40 (11%)
67:83 (11%)
view
8 x 2 src
src
utility.ts
utility.ts
246:254 (3%)
263:271 (3%)
view
6 x 2 src
src
debugCodeLensProvider.ts
extension.ts
154:159 (4%)
384:389 (2%)
view
6 x 2 src
src
configurationProvider.ts
configurationProvider.ts
523:529 (1%)
540:546 (1%)
view
6 x 2 src
src
configurationProvider.ts
configurationProvider.ts
670:678 (1%)
689:697 (1%)
view