aws-cloudformation / aws-cloudformation-resource-providers-events
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
  • 27% duplication:
    • 888 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 243 duplicated lines
  • 43 duplicates
system27% (243 lines)
Duplication per Extension
java25% (195 lines)
yaml65% (48 lines)
Duplication per Component (primary)
aws-events-connection/src/main/java/software/amazon/events/connection20% (108 lines)
aws-events-apidestination/src/main/java/software/amazon/events/apidestination34% (87 lines)
aws-events-connection61% (24 lines)
aws-events-apidestination44% (24 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G aws-events-apidestination/src/main/java/software/amazon/events/apidestination aws-events-apidestination/src/main/java/software/amazon/events/apidestination aws-events-connection/src/main/java/software/amazon/events/connection aws-events-connection/src/main/java/software/amazon/events/connection aws-events-apidestination/src/main/java/software/amazon/events/apidestination--aws-events-connection/src/main/java/software/amazon/events/connection 117

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 43 duplicates...
Size#FoldersFilesLinesCode
24 x 2 aws-events-apidestination
aws-events-connection
resource-role.yaml
resource-role.yaml
1:25 (70%)
1:25 (61%)
view
13 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
DeleteHandler.java
DeleteHandler.java
17:33 (38%)
21:37 (22%)
view
12 x 2 aws-events-connection/sr...mazon/events/connection
aws-events-connection/sr...mazon/events/connection
CreateHandler.java
UpdateHandler.java
80:95 (19%)
66:81 (21%)
view
11 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
ReadHandler.java
ReadHandler.java
16:29 (39%)
17:30 (40%)
view
11 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-apidestinatio...n/events/apidestination
CreateHandler.java
UpdateHandler.java
26:39 (25%)
24:37 (26%)
view
10 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-apidestinatio...n/events/apidestination
DeleteHandler.java
ReadHandler.java
18:30 (29%)
17:29 (35%)
view
10 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
DeleteHandler.java
CreateHandler.java
18:30 (29%)
30:42 (16%)
view
10 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
DeleteHandler.java
ReadHandler.java
18:30 (29%)
18:30 (37%)
view
10 x 2 aws-events-connection/sr...mazon/events/connection
aws-events-connection/sr...mazon/events/connection
CreateHandler.java
DeleteHandler.java
30:42 (16%)
22:34 (16%)
view
10 x 2 aws-events-connection/sr...mazon/events/connection
aws-events-connection/sr...mazon/events/connection
DeleteHandler.java
ReadHandler.java
22:34 (16%)
18:30 (37%)
view
10 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
ReadHandler.java
DeleteHandler.java
17:29 (35%)
22:34 (16%)
view
10 x 2 aws-events-connection/sr...mazon/events/connection
aws-events-connection/sr...mazon/events/connection
CreateHandler.java
ReadHandler.java
30:42 (16%)
18:30 (37%)
view
10 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
ReadHandler.java
CreateHandler.java
17:29 (35%)
30:42 (16%)
view
9 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
BaseHandlerStd.java
BaseHandlerStd.java
23:33 (45%)
23:33 (45%)
view
8 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-apidestinatio...n/events/apidestination
DeleteHandler.java
UpdateHandler.java
21:30 (23%)
28:37 (19%)
view
8 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
CreateHandler.java
ReadHandler.java
30:39 (18%)
21:30 (29%)
view
8 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
UpdateHandler.java
CreateHandler.java
28:37 (19%)
33:42 (13%)
view
8 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
UpdateHandler.java
ReadHandler.java
28:37 (19%)
21:30 (29%)
view
8 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
CreateHandler.java
CreateHandler.java
30:39 (18%)
33:42 (13%)
view
8 x 2 aws-events-apidestinatio...n/events/apidestination
aws-events-connection/sr...mazon/events/connection
UpdateHandler.java
DeleteHandler.java
28:37 (19%)
25:34 (13%)
view