Skip to content

Files

Latest commit

 

History

History
43 lines (30 loc) · 773 Bytes

Layout-SpaceAroundBlockParameters.md

File metadata and controls

43 lines (30 loc) · 773 Bytes

Pattern: Malformed space around block parameter pipe

Issue: -

Description

Checks the spacing inside and after block parameters pipes.

Examples

# EnforcedStyleInsidePipes: no_space (default)

# bad
{}.each { | x,  y |puts x }
->( x,  y ) { puts x }

# good
{}.each { |x, y| puts x }
->(x, y) { puts x }
# EnforcedStyleInsidePipes: space

# bad
{}.each { |x,  y| puts x }
->(x,  y) { puts x }

# good
{}.each { | x, y | puts x }
->( x, y ) { puts x }

Default configuration

Attribute Value
EnforcedStyleInsidePipes no_space
SupportedStylesInsidePipes space, no_space

Further Reading