microsoft / azure-pipelines-task-lib
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
  • 11% duplication:
    • 6,098 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 723 duplicated lines
  • 267 duplicates
system11% (723 lines)
Duplication per Extension
ps114% (456 lines)
ts8% (173 lines)
js12% (52 lines)
yml48% (42 lines)
Duplication per Component (primary)
powershell/VstsTaskSdk14% (456 lines)
node8% (199 lines)
ROOT39% (42 lines)
powershell15% (26 lines)
powershell/CompiledHelpers/Properties0% (0 lines)
powershell/CompiledHelpers0% (0 lines)
powershell/Docs0% (0 lines)

Duplication Between Components (50+ lines)

G node node powershell powershell node--powershell 52

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 267 duplicates...
Size#FoldersFilesLinesCode
18 x 2 node
powershell
buildutils.js
make-util.js
60:87 (18%)
115:142 (16%)
view
16 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
69:95 (18%)
115:141 (18%)
view
12 x 2 node
node
toolrunner.ts
toolrunner.ts
728:744 (2%)
915:932 (2%)
view
11 x 2 node
node
internal.ts
task.ts
530:540 (2%)
1385:1395 (1%)
view
10 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
FindFunctions.ps1
FindFunctions.ps1
126:136 (1%)
394:404 (1%)
view
10 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
InputFunctions.ps1
InputFunctions.ps1
329:338 (2%)
361:370 (2%)
view
10 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
InputFunctions.ps1
InputFunctions.ps1
155:164 (2%)
194:203 (2%)
view
10 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
14:30 (11%)
69:85 (11%)
view
10 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
14:30 (11%)
115:131 (11%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
FindFunctions.ps1
FindFunctions.ps1
83:93 (1%)
358:368 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
ServerOMFunctions.ps1
ServerOMFunctions.ps1
319:328 (1%)
484:493 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
InputFunctions.ps1
InputFunctions.ps1
81:91 (2%)
115:125 (2%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
ServerOMFunctions.ps1
ServerOMFunctions.ps1
250:259 (1%)
319:328 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
InputFunctions.ps1
InputFunctions.ps1
142:153 (2%)
181:192 (2%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
ServerOMFunctions.ps1
ServerOMFunctions.ps1
250:259 (1%)
484:493 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
ServerOMFunctions.ps1
ServerOMFunctions.ps1
175:184 (1%)
250:259 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
FindFunctions.ps1
ServerOMFunctions.ps1
219:228 (1%)
175:184 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
FindFunctions.ps1
ServerOMFunctions.ps1
219:228 (1%)
484:493 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
ServerOMFunctions.ps1
ServerOMFunctions.ps1
175:184 (1%)
319:328 (1%)
view
9 x 2 powershell/VstsTaskSdk
powershell/VstsTaskSdk
ServerOMFunctions.ps1
ServerOMFunctions.ps1
175:184 (1%)
484:493 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
21 x 2 node
powershell
buildutils.js
make-util.js
60:88 
115:143 
view
6 x 2 node
node
taskcommand.ts
taskcommand.ts
105:111 
113:119 
view