Skip to content

Files

Latest commit

 

History

History
33 lines (23 loc) · 577 Bytes

Layout-SpaceBeforeBlockBraces.md

File metadata and controls

33 lines (23 loc) · 577 Bytes

Pattern: Malformed space before block brace

Issue: -

Description

Checks that block braces have or don't have a space before the opening brace depending on configuration.

Examples

# bad
foo.map{ |a|
  a.bar.to_s
}

# good
foo.map { |a|
  a.bar.to_s
}

Default configuration

Attribute Value
EnforcedStyle space
SupportedStyles space, no_space
SupportedStylesForEmptyBraces space, no_space

Further Reading