Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 822 Bytes

Layout-EmptyLinesAroundModuleBody.md

File metadata and controls

45 lines (29 loc) · 822 Bytes

Pattern: Malformed spacing around module body

Issue: -

Description

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

Examples

EnforcedStyle: empty_lines

# good

module Foo

  def bar
    ...
  end

end

EnforcedStyle: no_empty_lines

# good

module Foo
  def bar
    ...
  end
end

Default configuration

Attribute Value
EnforcedStyle no_empty_lines
SupportedStyles empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines

Further Reading