aws-samples / aws-sso-sync-script
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
  • 40% duplication:
    • 209 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 14 duplicates
system40% (84 lines)
Duplication per Extension
ps140% (84 lines)
Duplication per Component (primary)
ROOT40% (84 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
10 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
35:46 (4%)
196:207 (4%)
view
8 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
49:57 (3%)
165:173 (3%)
view
8 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
5:13 (3%)
165:173 (3%)
view
8 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
5:13 (3%)
49:57 (3%)
view
7 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
139:146 (3%)
188:195 (3%)
view
7 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
95:102 (3%)
196:203 (3%)
view
7 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
95:102 (3%)
148:155 (3%)
view
7 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
148:155 (3%)
196:203 (3%)
view
7 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
35:42 (3%)
95:102 (3%)
view
7 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
35:42 (3%)
148:155 (3%)
view
6 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
27:33 (2%)
189:195 (2%)
view
6 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
27:33 (2%)
140:146 (2%)
view
6 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
68:74 (2%)
139:145 (2%)
view
6 x 2 ROOT
ROOT
Sync.ps1
Sync.ps1
68:74 (2%)
188:194 (2%)
view