microsoft / vscode-json-languageservice
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:
    • 2,783 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 158 duplicated lines
  • 13 duplicates
system5% (158 lines)
Duplication per Extension
ts5% (158 lines)
Duplication per Component (primary)
src/services7% (158 lines)
build0% (0 lines)
src/example0% (0 lines)
src0% (0 lines)
src/utils0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/services
src/services
configuration.ts
configuration.ts
45:56 (2%)
320:331 (2%)
view
7 x 2 src/services
src/services
jsonCompletion.ts
jsonCompletion.ts
551:558 (<1%)
568:575 (<1%)
view
7 x 2 src/services
src/services
jsonDocumentSymbols.ts
jsonDocumentSymbols.ts
71:77 (3%)
161:167 (3%)
view
7 x 2 src/services
src/services
configuration.ts
configuration.ts
119:128 (1%)
180:189 (1%)
view
7 x 2 src/services
src/services
jsonDocumentSymbols.ts
jsonDocumentSymbols.ts
24:34 (3%)
104:114 (3%)
view
7 x 2 src/services
src/services
configuration.ts
configuration.ts
73:79 (1%)
353:359 (1%)
view
6 x 2 src/services
src/services
configuration.ts
configuration.ts
198:203 (1%)
205:210 (1%)
view
6 x 2 src/services
src/services
configuration.ts
configuration.ts
191:196 (1%)
198:203 (1%)
view
6 x 2 src/services
src/services
jsonDocumentSymbols.ts
jsonDocumentSymbols.ts
42:53 (3%)
123:134 (3%)
view
6 x 2 src/services
src/services
configuration.ts
configuration.ts
191:196 (1%)
205:210 (1%)
view
6 x 2 src/services
src/services
jsonCompletion.ts
jsonCompletion.ts
247:253 (<1%)
271:277 (<1%)
view
6 x 2 src/services
src/services
configuration.ts
configuration.ts
209:214 (1%)
424:429 (1%)
view
6 x 2 src/services
src/services
jsonDocumentSymbols.ts
jsonDocumentSymbols.ts
82:92 (3%)
174:184 (3%)
view