Skip to content

Files

Latest commit

 

History

History
29 lines (21 loc) · 420 Bytes

Layout-RescueEnsureAlignment.md

File metadata and controls

29 lines (21 loc) · 420 Bytes

Pattern: Misaligned rescue/ensure

Issue: -

Description

This rule checks whether the rescue and ensure keywords are aligned properly.

Examples

# bad
begin
  something
  rescue
  puts 'error'
end

# good
begin
  something
rescue
  puts 'error'
end

Further Reading