Skip to content

Instantly share code, notes, and snippets.

@kamipo
Created June 24, 2021 09:08
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 kamipo/13e6af074f9e9707ad1aa4fd1c36c554 to your computer and use it in GitHub Desktop.
Save kamipo/13e6af074f9e9707ad1aa4fd1c36c554 to your computer and use it in GitHub Desktop.
# frozen_string_literal: true
def foo(*args, **kwargs)
end
foo(:a, :b, c: :d,
x: 1,
y: 2
)
foo(a: :b, c: :d,
x: 1,
y: 2
)
__END__
% be rubocop --only Layout/ClosingParenthesisIndentation closing_parenthisis.rb
Inspecting 1 file
C
Offenses:
closing_parenthisis.rb:14:1: C: [Correctable] Layout/ClosingParenthesisIndentation: Align ) with (.
)
^
1 file inspected, 1 offense detected, 1 offense auto-correctable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment