microsoft / vscode-azureeventgrid
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:
    • 749 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 32 duplicated lines
  • 2 duplicates
system4% (32 lines)
Duplication per Extension
ts4% (32 lines)
Duplication per Component (primary)
src/eventSubscription/createWizard6% (16 lines)
src/topic/tree18% (10 lines)
src/topic/createWizard15% (6 lines)
ROOT0% (0 lines)
src/commands0% (0 lines)
src/eventSubscription/commands0% (0 lines)
src/eventSubscription0% (0 lines)
src/eventSubscription/tree0% (0 lines)
src0% (0 lines)
src/topic0% (0 lines)
src/utils0% (0 lines)
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
10 x 2 src/eventSubscription/createWizard
src/topic/tree
TopicListStep.ts
TopicProvider.ts
24:33 (29%)
33:42 (34%)
view
6 x 2 src/eventSubscription/createWizard
src/topic/createWizard
EventSubscriptionNameStep.ts
TopicNameStep.ts
39:44 (24%)
39:44 (24%)
view