aws-samples / amazon-api-gateway-websocket-feature-toggles
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:
    • 281 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 52 duplicated lines
  • 5 duplicates
system18% (52 lines)
Duplication per Extension
yaml26% (52 lines)
Duplication per Component (primary)
ROOT26% (52 lines)
new-connection0% (0 lines)
connection-manager0% (0 lines)
feature-toggle-message0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
9 x 2 ROOT
ROOT
template.yaml
template.yaml
126:134 (4%)
188:196 (4%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
90:97 (4%)
107:114 (4%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
120:125 (3%)
175:180 (3%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
163:168 (3%)
191:196 (3%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
129:134 (3%)
163:168 (3%)
view