microsoft / vscode-azure-account
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
  • 1% duplication:
    • 2,457 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 35 duplicated lines
  • 3 duplicates
system1% (35 lines)
Duplication per Extension
ts1% (35 lines)
Duplication per Component (primary)
src/cloudConsole3% (23 lines)
src/login/adal5% (12 lines)
codeFlowResult0% (0 lines)
ROOT0% (0 lines)
sample/src0% (0 lines)
src0% (0 lines)
src/login0% (0 lines)
src/login/commands0% (0 lines)
src/login/msal0% (0 lines)
src/utils0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/cloudConsole
src/cloudConsole
cloudConsoleLauncher.ts
cloudConsoleLauncher.ts
54:60 (2%)
131:137 (2%)
view
6 x 2 src/cloudConsole
src/cloudConsole
cloudConsoleLauncher.ts
cloudConsoleLauncher.ts
58:65 (2%)
233:240 (2%)
view
6 x 2 src/login/adal
src/login/adal
tokens.ts
tokens.ts
141:147 (4%)
157:164 (4%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
11 x 2 src/cloudConsole
src/cloudConsole
cloudConsole.ts
cloudConsole.ts
495:506 
508:519 
view