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
Style/Lambda doesn't have an EnforcedStyle option. Allowing users to have an enforced_style of always using lambda would be useful for those with an existing codebase that uses lambda and wants any new code to be consistent with existing code.
The text was updated successfully, but these errors were encountered:
… to Style/Lambda cop
This change adds configurable styles for `Style/Lambda`, that lets you
mandate the use of either syntax for both single line and multiline lambdas.
The options are:
- `line_count_dependent` (default)
This is the previous behaviour, and enforces `literal` style for single
line lambdas, and `lambda` style for multiline lambdas.
- `lambda`
This configuration enforces `lambda` style for all lambdas.
- `literal`
This configuration enforces `literal` style for all lambdas.
…to Style/Lambda cop (rubocop#3076)
This change adds configurable styles for `Style/Lambda`, that lets you
mandate the use of either syntax for both single line and multiline lambdas.
The options are:
- `line_count_dependent` (default)
This is the previous behaviour, and enforces `literal` style for single
line lambdas, and `lambda` style for multiline lambdas.
- `lambda`
This configuration enforces `lambda` style for all lambdas.
- `literal`
This configuration enforces `literal` style for all lambdas.
Style/Lambda
doesn't have anEnforcedStyle
option. Allowing users to have an enforced_style of always usinglambda
would be useful for those with an existing codebase that useslambda
and wants any new code to be consistent with existing code.The text was updated successfully, but these errors were encountered: