Skip to content

Files

Latest commit

 

History

History
35 lines (22 loc) · 742 Bytes

Layout-EmptyLinesAroundClassBody.md

File metadata and controls

35 lines (22 loc) · 742 Bytes

Pattern: Malformed spacing around class body

Issue: -

Description

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

Examples

EnforcedStyle: empty_lines

# good

class 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