Apply Layout/SpaceInLambdaLiteral rubocop rule

I had mixed feelings about this rule, since I like spaces where
possible.

However, I changed my mind when I realized writing `->(thing) { }` was
similar to defining a method, and we don't have a space before the
parenthesis when defining a method.
This commit is contained in:
Javi Martín
2019-10-25 23:48:41 +02:00
parent a0554f5bba
commit f07c422f21
6 changed files with 8 additions and 5 deletions

View File

@@ -115,6 +115,9 @@ Layout/SpaceBeforeFirstArg:
Layout/SpaceBeforeSemicolon:
Enabled: true
Layout/SpaceInLambdaLiteral:
Enabled: true
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: true