aws / aws-health-tools
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
  • 39% duplication:
    • 4,723 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,853 duplicated lines
  • 232 duplicates
system39% (1,853 lines)
Duplication per Extension
yaml49% (930 lines)
yml42% (843 lines)
py9% (63 lines)
js10% (17 lines)
Duplication per Component (primary)
automated-actions/AWS_EBS_VOLUME_LOST46% (1,343 lines)
automated-actions/AWS_RISK_CREDENTIALS_EXPOSED32% (126 lines)
shd-notifier14% (77 lines)
chime-notifier/cfn-templates71% (72 lines)
slack-notifier/cfn-templates47% (55 lines)
sns-topic-publisher/cfn-templates40% (53 lines)
coralogix-notifier/cfn-templates29% (40 lines)
coralogix-notifier100% (34 lines)
sms-notifier19% (26 lines)
chime-notifier100% (17 lines)
sns-topic-publisher45% (10 lines)
slack-notifier0% (0 lines)
teams-notifier0% (0 lines)
automated-actions/AWS_ELASTICLOADBALANCING_ENI_LIMIT_REACHED0% (0 lines)
automated-actions/AWS_EC2_INSTANCE_STORE_DRIVE_PERFORMANCE_DEGRADED0% (0 lines)
automated-actions/AWS_Codepipeline_Disable_Stage_Transition0% (0 lines)
high-availability-endpoint/python0% (0 lines)

Duplication Between Components (50+ lines)

G automated-actions/AWS_EBS_VOLUME_LOST automated-actions/AWS_EBS_VOLUME_LOST sns-topic-publisher/cfn-templates sns-topic-publisher/cfn-templates automated-actions/AWS_EBS_VOLUME_LOST--sns-topic-publisher/cfn-templates 138 chime-notifier/cfn-templates chime-notifier/cfn-templates slack-notifier/cfn-templates slack-notifier/cfn-templates chime-notifier/cfn-templates--slack-notifier/cfn-templates 110 coralogix-notifier coralogix-notifier coralogix-notifier/cfn-templates coralogix-notifier/cfn-templates coralogix-notifier--coralogix-notifier/cfn-templates 68

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 232 duplicates...
Size#FoldersFilesLinesCode
77 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_importantapp-cfn.yaml
step_2_app_reinvent_workshop.yml
113:199 (44%)
158:244 (35%)
view
58 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_importantapp-cfn.yaml
step_2_app_reinvent_workshop.yml
1:65 (33%)
1:65 (26%)
view
48 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_cfn.yaml
step_3_stepfunctions_reinvent_worksho...
552:609 (6%)
414:466 (9%)
view
35 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_importantapp-cfn.yaml
step_2_app_reinvent_workshop.yml
73:110 (20%)
118:155 (16%)
view
34 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_cfn.yaml
step_3_stepfunctions_reinvent_worksho...
376:417 (4%)
241:282 (6%)
view
34 x 2 coralogix-notifier
coralogix-notifier/cfn-templates
LambdaFunction.py
coralogix-notifier.yml
8:44 (100%)
69:105 (25%)
view
31 x 2 chime-notifier/cfn-templates
slack-notifier/cfn-templates
chime-notifier.yml
slack-notifier.yml
7:37 (30%)
10:40 (26%)
view
24 x 2 automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
step_3_stepfunctions_reinvent_worksho...
step_3_stepfunctions_reinvent_worksho...
192:215 (4%)
349:372 (4%)
view
22 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_cfn.yaml
step_3_stepfunctions_reinvent_worksho...
258:281 (3%)
90:111 (4%)
view
21 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_cfn.yaml
step_3_stepfunctions_reinvent_worksho...
730:750 (2%)
506:526 (4%)
view
21 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST
aws_ebs_vol_lost_cfn.yaml
aws_ebs_vol_lost_cloudformation.yaml
457:477 (2%)
461:481 (2%)
view
20 x 2 automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
step_3_stepfunctions_reinvent_worksho...
step_3_stepfunctions_reinvent_worksho...
223:242 (3%)
349:368 (3%)
view
20 x 2 automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
step_3_stepfunctions_reinvent_worksho...
step_3_stepfunctions_reinvent_worksho...
192:211 (3%)
223:242 (3%)
view
20 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_cfn.yaml
step_3_stepfunctions_reinvent_worksho...
483:502 (2%)
324:343 (3%)
view
19 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST
aws_ebs_vol_lost_cfn.yaml
aws_ebs_vol_lost_cloudformation.yaml
37:55 (2%)
7:25 (2%)
view
18 x 2 chime-notifier/cfn-templates
slack-notifier/cfn-templates
chime-notifier.yml
slack-notifier.yml
84:101 (17%)
100:117 (15%)
view
18 x 2 automated-actions/AWS_EBS_VOLUME_LOST
sns-topic-publisher/cfn-templates
aws_ebs_vol_lost_cloudformation.yaml
sns-topic-publisher.yml
486:503 (2%)
87:104 (13%)
view
17 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EB...E_LOST/SydneySummitDemo
aws_ebs_vol_lost_cfn.yaml
aws_ebs_vol_lost_importantapp-cfn.yaml
19:35 (2%)
169:185 (9%)
view
17 x 2 automated-actions/AWS_EB...E_LOST/SydneySummitDemo
automated-actions/AWS_EBS_VOLUME_LOST/stepbystep
aws_ebs_vol_lost_cfn.yaml
step_3_stepfunctions_reinvent_worksho...
513:531 (2%)
367:383 (3%)
view
17 x 2 chime-notifier
chime-notifier/cfn-templates
LambdaFunction.py
chime-notifier.yml
8:26 (100%)
58:75 (16%)
view