Pattern: Malformed space around block parameter pipe
Issue: -
Checks the spacing inside and after block parameters pipes.
# 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 }
Attribute | Value |
---|---|
EnforcedStyleInsidePipes | no_space |
SupportedStylesInsidePipes | space, no_space |