Skip to content

Instantly share code, notes, and snippets.

@onk
Last active January 7, 2018 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onk/7cd2f23ec5a7eca790150f8bae88dbc3 to your computer and use it in GitHub Desktop.
Save onk/7cd2f23ec5a7eca790150f8bae88dbc3 to your computer and use it in GitHub Desktop.
Layout/FirstParameterIndentation (RuboCop v0.52.1)
# EnforcedStyle: special_for_inner_method_call_in_parentheses (default)
# good
foo(bar(
:baz,
))
# also good
foo bar(
:baz,
)
# bad
foo(bar(
:baz,
^^^^ Indent the first parameter one step more than bar(.
))
# good??? (currently no offenses)
foo(bar(
# some comment
:baz,
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment