aws-samples / automating-aws-migration-with-cloudendure-scripts
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:
    • 446 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 106 duplicated lines
  • 10 duplicates
system23% (106 lines)
Duplication per Extension
py24% (92 lines)
yml21% (14 lines)
Duplication per Component (primary)
ROOT23% (106 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
19 x 2 ROOT
ROOT
Cleanup.py
StatusCheck.py
24:45 (41%)
25:45 (33%)
view
16 x 2 ROOT
ROOT
StatusCheck.py
UpdateProject.py
25:42 (28%)
25:41 (48%)
view
16 x 2 ROOT
ROOT
Cleanup.py
UpdateProject.py
24:42 (34%)
25:41 (48%)
view
14 x 2 ROOT
ROOT
Machine.py
UpdateProject.py
25:39 (35%)
27:41 (42%)
view
14 x 2 ROOT
ROOT
Cleanup.py
Machine.py
28:42 (30%)
25:39 (35%)
view
14 x 2 ROOT
ROOT
Machine.py
StatusCheck.py
25:39 (35%)
28:42 (25%)
view
9 x 2 ROOT
ROOT
CheckMachine.py
StatusCheck.py
28:37 (16%)
47:55 (16%)
view
7 x 2 ROOT
ROOT
config-test.yml
config-test.yml
11:17 (21%)
25:31 (21%)
view
6 x 2 ROOT
ROOT
Cleanup.py
StatusCheck.py
49:54 (13%)
49:54 (10%)
view
6 x 2 ROOT
ROOT
CheckMachine.py
Cleanup.py
30:35 (11%)
49:54 (13%)
view