microsoft / VSTSAgent.PowerShell
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
  • 23% duplication:
    • 859 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 203 duplicated lines
  • 20 duplicates
system23% (203 lines)
Duplication per Extension
psm128% (203 lines)
Duplication per Component (primary)
VSTSAgent18% (107 lines)
VSTSAgent/DSCResources/xVSTSAgent40% (96 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 20 duplicates...
Size#FoldersFilesLinesCode
37 x 2 VSTSAgent/DSCResources/xVSTSAgent
VSTSAgent/DSCResources/xVSTSAgent
xVSTSAgent.psm1
xVSTSAgent.psm1
102:151 (15%)
203:252 (15%)
view
21 x 2 VSTSAgent/DSCResources/xVSTSAgent
VSTSAgent/DSCResources/xVSTSAgent
xVSTSAgent.psm1
xVSTSAgent.psm1
38:65 (8%)
227:254 (8%)
view
20 x 2 VSTSAgent/DSCResources/xVSTSAgent
VSTSAgent/DSCResources/xVSTSAgent
xVSTSAgent.psm1
xVSTSAgent.psm1
38:63 (8%)
126:151 (8%)
view
15 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
527:545 (3%)
573:591 (3%)
view
13 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
365:381 (2%)
573:589 (2%)
view
13 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
365:381 (2%)
527:543 (2%)
view
11 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
199:213 (2%)
527:540 (2%)
view
11 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
199:213 (2%)
573:586 (2%)
view
11 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
515:525 (2%)
561:571 (2%)
view
11 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
199:213 (2%)
365:378 (2%)
view
10 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
435:447 (2%)
528:540 (2%)
view
10 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
366:378 (2%)
435:447 (2%)
view
10 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
435:447 (2%)
574:586 (2%)
view
10 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
200:213 (2%)
435:447 (2%)
view
9 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
97:108 (1%)
574:584 (1%)
view
9 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
97:108 (1%)
435:445 (1%)
view
9 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
97:108 (1%)
200:211 (1%)
view
9 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
97:108 (1%)
366:376 (1%)
view
9 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
97:108 (1%)
528:538 (1%)
view
6 x 2 VSTSAgent
VSTSAgent
VSTSAgent.psm1
VSTSAgent.psm1
84:89 (1%)
171:176 (1%)
view