microsoft / azure-pipelines-vscode
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
  • 21% duplication:
    • 2,890 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 620 duplicated lines
  • 96 duplicates
system21% (620 lines)
Duplication per Extension
yml74% (560 lines)
ts2% (48 lines)
cs20% (12 lines)
Duplication per Component (primary)
src/configure/templates74% (560 lines)
src/configure/clients7% (24 lines)
src/configure2% (12 lines)
src/configure/helper2% (12 lines)
tools/extract-yaml-testcases20% (12 lines)
src/configure/model0% (0 lines)
src/configure/resources0% (0 lines)
src0% (0 lines)
src/helpers0% (0 lines)
tools/extract-yaml-testcases/src0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 96 duplicates...
Size#FoldersFilesLinesCode
67 x 2 src/configure/templates
src/configure/templates
dotnetcoreLinuxWebApp.yml
dotnetcoreWindowsWebApp.yml
20:104 (88%)
20:104 (88%)
view
32 x 2 src/configure/templates
src/configure/templates
nodejs.yml
nodejsWithAngular.yml
37:72 (59%)
38:73 (58%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejsWithGrunt.yml
nodejsWithWebpack.yml
38:72 (57%)
39:73 (56%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejs.yml
nodejsWithWebpack.yml
38:72 (57%)
39:73 (56%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejs.yml
nodejsWithGrunt.yml
38:72 (57%)
38:72 (57%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejsWithAngular.yml
nodejsWithGulp.yml
39:73 (56%)
38:72 (57%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejsWithGulp.yml
nodejsWithWebpack.yml
38:72 (57%)
39:73 (56%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejs.yml
nodejsWithGulp.yml
38:72 (57%)
38:72 (57%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejsWithGrunt.yml
nodejsWithGulp.yml
38:72 (57%)
38:72 (57%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejsWithAngular.yml
nodejsWithWebpack.yml
39:73 (56%)
39:73 (56%)
view
31 x 2 src/configure/templates
src/configure/templates
nodejsWithAngular.yml
nodejsWithGrunt.yml
39:73 (56%)
38:72 (57%)
view
30 x 2 src/configure/templates
src/configure/templates
nodejsWithGulp.yml
simpleWebApp.yml
40:72 (55%)
28:60 (66%)
view
30 x 2 src/configure/templates
src/configure/templates
nodejsWithAngular.yml
simpleWebApp.yml
41:73 (54%)
28:60 (66%)
view
30 x 2 src/configure/templates
src/configure/templates
nodejs.yml
simpleWebApp.yml
40:72 (55%)
28:60 (66%)
view
30 x 2 src/configure/templates
src/configure/templates
nodejsWithWebpack.yml
simpleWebApp.yml
41:73 (54%)
28:60 (66%)
view
30 x 2 src/configure/templates
src/configure/templates
nodejsWithGrunt.yml
simpleWebApp.yml
40:72 (55%)
28:60 (66%)
view
24 x 2 src/configure/templates
src/configure/templates
dotnetcoreWindowsFunctionApp.yml
pythonLinuxFunctionApp.yml
45:73 (44%)
52:80 (39%)
view
21 x 2 src/configure/templates
src/configure/templates
nodejsWithGrunt.yml
nodejsWithGulp.yml
6:35 (38%)
6:35 (38%)
view
21 x 2 src/configure/templates
src/configure/templates
nodejs.yml
nodejsWithGrunt.yml
6:35 (38%)
6:35 (38%)
view
21 x 2 src/configure/templates
src/configure/templates
nodejs.yml
nodejsWithGulp.yml
6:35 (38%)
6:35 (38%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 src/configure/clients/devOps
src/configure/clients/devOps
organizationsClient.ts
organizationsClient.ts
137:145 
148:156 
view