awslabs / aws-tools-for-vmware
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
  • 4% duplication:
    • 993 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 43 duplicated lines
  • 4 duplicates
system4% (43 lines)
Duplication per Extension
ps15% (43 lines)
Duplication per Component (primary)
powershell5% (43 lines)
Deploy-XNumShellVMs0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
10 x 2 powershell
powershell
Upgrade-SqlServerStandaloneDatabaseEn...
Upgrade-SqlServerStandaloneDatabaseEn...
893:903 (1%)
920:930 (1%)
view
9 x 2 powershell
powershell
Upgrade-SqlServerStandaloneDatabaseEn...
Upgrade-SqlServerStandaloneDatabaseEn...
867:876 (1%)
921:930 (1%)
view
9 x 2 powershell
powershell
Upgrade-SqlServerStandaloneDatabaseEn...
Upgrade-SqlServerStandaloneDatabaseEn...
867:876 (1%)
894:903 (1%)
view
7 x 2 powershell
powershell
Upgrade-SqlServerStandaloneDatabaseEn...
Upgrade-SqlServerStandaloneDatabaseEn...
363:369 (<1%)
586:592 (<1%)
view