microsoft / Export-Microsoft365LicenseStatus
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:
    • 406 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 94 duplicated lines
  • 5 duplicates
system23% (94 lines)
Duplication per Extension
ps123% (94 lines)
Duplication per Component (primary)
ROOT23% (94 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
14 x 2 ROOT
ROOT
Export-Microsoft365LicenseStatus.ps1
Export-Office365LicenseStatus.ps1
83:98 (6%)
82:97 (6%)
view
10 x 2 ROOT
ROOT
Export-Microsoft365LicenseStatus.ps1
Export-Office365LicenseStatus.ps1
220:232 (4%)
216:228 (4%)
view
9 x 2 ROOT
ROOT
Export-Microsoft365LicenseStatus.ps1
Export-Office365LicenseStatus.ps1
186:201 (4%)
184:197 (4%)
view
7 x 2 ROOT
ROOT
Export-Microsoft365LicenseStatus.ps1
Export-Office365LicenseStatus.ps1
53:60 (3%)
47:54 (3%)
view
7 x 2 ROOT
ROOT
Export-Microsoft365LicenseStatus.ps1
Export-Office365LicenseStatus.ps1
256:264 (3%)
246:254 (3%)
view