microsoft / vscode-azurefunctions
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
  • 35% duplication:
    • 14,936 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 5,294 duplicated lines
  • 5,484 duplicates
system35% (5,294 lines)
Duplication per Extension
html85% (4,729 lines)
ts5% (529 lines)
cs9% (36 lines)
Duplication per Component (primary)
ROOT83% (4,729 lines)
src/commands10% (505 lines)
tools/JsonCli9% (36 lines)
src/tree1% (12 lines)
src/funcCoreTools3% (12 lines)
src0% (0 lines)
src/debug0% (0 lines)
src/downloadAzureProject0% (0 lines)
src/funcConfig0% (0 lines)
src/templates0% (0 lines)
src/utils0% (0 lines)
src/vsCodeConfig0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 5,484 duplicates...
Size#FoldersFilesLinesCode
174 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
299:509 (3%)
725:935 (3%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
514:722 (3%)
727:935 (3%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:296 (3%)
301:509 (3%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:296 (3%)
514:722 (3%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:296 (3%)
727:935 (3%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
301:509 (3%)
514:722 (3%)
view
159 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
89:275 (2%)
7425:7611 (2%)
view
159 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
515:701 (2%)
7425:7611 (2%)
view
159 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
728:914 (2%)
7425:7611 (2%)
view
159 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
302:488 (2%)
7425:7611 (2%)
view
151 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
727:903 (2%)
940:1117 (2%)
view
151 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
514:690 (2%)
940:1117 (2%)
view
151 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:264 (2%)
940:1117 (2%)
view
151 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
301:477 (2%)
940:1117 (2%)
view
150 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
942:1117 (2%)
7425:7600 (2%)
view
44 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
6334:6389 (<1%)
6713:6769 (<1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
5096:5154 (<1%)
5157:5215 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
5042:5093 (<1%)
5103:5154 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
5042:5093 (<1%)
5164:5215 (<1%)
view
25 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4352:4384 (<1%)
6793:6825 (<1%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/commands/initProjectForVSCode/InitVSCodeStep
src/commands/initProjectForVSCode/InitVSCodeStep
DotnetInitVSCodeStep.ts
DotnetScriptInitVSCodeStep.ts
27:34 
12:19 
view
6 x 2 src/funcConfig
src/funcConfig
host.ts
host.ts
52:58 
77:83 
view
6 x 2 src/utils
src/utils
dotnetUtils.ts
dotnetUtils.ts
56:62 
64:70 
view