Skip to content

Files

Latest commit

 

History

History
41 lines (25 loc) · 739 Bytes

Layout-EmptyLinesAroundBlockBody.md

File metadata and controls

41 lines (25 loc) · 739 Bytes

Pattern: Malformed spacing around block body

Issue: -

Description

This rule checks if empty lines around the bodies of blocks match the configuration.

Examples

# EnforcedStyle: empty_lines

# good

foo do |bar|

  ...

end

# EnforcedStyle: no_empty_lines

# good

foo do |bar|
  ...
end

Default configuration

Attribute Value
EnforcedStyle no_empty_lines
SupportedStyles empty_lines, no_empty_lines

Further Reading