You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot find an existing cop that would complain about the missing space after |x|.
I am thinking that perhaps this should be a responsibility of the SpaceInsideBlockBraces cop, or – since that cop is maybe growing too large – if there should be a new SpaceAroundBlockArguments cop that checks the spacing on both sides of the |x|.
The text was updated successfully, but these errors were encountered:
Maybe the spacing inside the arguments “block” could be checked by the same cop. In the following example, there should be only one space after the comma, and no space before x and after y:
{}.each{ | x,y |putsx}
bquorning
changed the title
No cop checking for space after block argument?
No cop checking for space after (or within) block arguments?
Feb 3, 2015
I cannot find an existing cop that would complain about the missing space after
|x|
.I am thinking that perhaps this should be a responsibility of the
SpaceInsideBlockBraces
cop, or – since that cop is maybe growing too large – if there should be a newSpaceAroundBlockArguments
cop that checks the spacing on both sides of the|x|
.The text was updated successfully, but these errors were encountered: