aws-samples / automate-reporting-on-amazon-workspaces-using-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
  • 18% duplication:
    • 236 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 10 duplicates
system18% (44 lines)
Duplication per Extension
ps118% (44 lines)
Duplication per Component (primary)
ROOT18% (44 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
9 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
123:131 (3%)
151:159 (3%)
view
9 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
109:117 (3%)
137:145 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
123:130 (3%)
173:180 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
151:158 (3%)
173:180 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
109:116 (3%)
123:130 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
109:116 (3%)
173:180 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
137:144 (3%)
151:158 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
109:116 (3%)
151:158 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
137:144 (3%)
173:180 (3%)
view
8 x 2 ROOT
ROOT
New-WKSWorkSpacesReport.ps1
New-WKSWorkSpacesReport.ps1
123:130 (3%)
137:144 (3%)
view