aws-cloudformation / aws-cloudformation-resource-providers-synthetics
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
  • 10% duplication:
    • 906 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 92 duplicated lines
  • 5 duplicates
system10% (92 lines)
Duplication per Extension
java11% (92 lines)
Duplication per Component (primary)
aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary11% (92 lines)
aws-synthetics-canary0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
19 x 2 aws-synthetics-canary/sr...mazon/synthetics/canary
aws-synthetics-canary/sr...mazon/synthetics/canary
CreateHandler.java
UpdateHandler.java
63:91 (16%)
100:128 (8%)
view
7 x 2 aws-synthetics-canary/sr...mazon/synthetics/canary
aws-synthetics-canary/sr...mazon/synthetics/canary
CreateHandler.java
UpdateHandler.java
45:51 (6%)
60:66 (3%)
view
7 x 2 aws-synthetics-canary/sr...mazon/synthetics/canary
aws-synthetics-canary/sr...mazon/synthetics/canary
UpdateHandler.java
UpdateHandler.java
91:97 (3%)
139:145 (3%)
view
7 x 2 aws-synthetics-canary/sr...mazon/synthetics/canary
aws-synthetics-canary/sr...mazon/synthetics/canary
UpdateHandler.java
UpdateHandler.java
29:35 (3%)
38:44 (3%)
view
6 x 2 aws-synthetics-canary/sr...mazon/synthetics/canary
aws-synthetics-canary/sr...mazon/synthetics/canary
ActionLogger.java
ActionLogger.java
27:32 (11%)
44:49 (11%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
11 x 2 aws-synthetics-canary/sr...mazon/synthetics/canary
aws-synthetics-canary/sr...mazon/synthetics/canary
CreateHandler.java
UpdateHandler.java
79:93 
116:130 
view