aws-quickstart / quickstart-codepipeline-bluegreen-deployment
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
  • 54% duplication:
    • 285 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 154 duplicated lines
  • 4 duplicates
system54% (154 lines)
Duplication per Extension
yml88% (88 lines)
py35% (66 lines)
Duplication per Component (primary)
ci100% (88 lines)
functions/source/TerminateandReSwap39% (33 lines)
functions/source/CreateEnvironment32% (33 lines)
functions/source/SwapEnvironments0% (0 lines)
functions/source/TestBlueEnvironment0% (0 lines)

Duplication Between Components (50+ lines)

G functions/source/CreateEnvironment functions/source/CreateEnvironment functions/source/TerminateandReSwap functions/source/TerminateandReSwap functions/source/CreateEnvironment--functions/source/TerminateandReSwap 66

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
44 x 2 ci
ci
config.yml
taskcat.yml
1:44 (100%)
1:44 (100%)
view
13 x 2 functions/source/CreateEnvironment
functions/source/TerminateandReSwap
index.py
index.py
57:69 (12%)
46:59 (15%)
view
11 x 2 functions/source/CreateEnvironment
functions/source/TerminateandReSwap
index.py
index.py
113:125 (10%)
97:109 (13%)
view
9 x 2 functions/source/CreateEnvironment
functions/source/TerminateandReSwap
index.py
index.py
9:20 (8%)
9:21 (10%)
view