New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FirstMethodArgumentLineBreak
cop doesn't work for super
#6974
Labels
Comments
koic
added a commit
to koic/rubocop
that referenced
this issue
Apr 26, 2019
…f calling using `super` Fixes rubocop#6974. This PR makes `Layout/FirstMethodArgumentLineBreak` aware of calling using `super`. ```ruby # example.rb super(:foo, :bar ) ``` ## Before ```console % rubocop --only Layout/FirstMethodArgumentLineBreak Inspecting 1 file . 1 file inspected, no offenses detected ``` ## After ```console % rubocop --only Layout/FirstMethodArgumentLineBreak Inspecting 1 file C Offenses: example.rb:1:7: C: Layout/FirstMethodArgumentLineBreak: Add a line break before the first argument of a multi-line method argument list. super(:foo, ^^^^ 1 file inspected, 1 offense detected ```
8 tasks
Thanks for your feedback. I opened a PR #6976. |
Thank you for the work and help! |
koic
added a commit
that referenced
this issue
Apr 27, 2019
…ware_of_super [Fix #6974] Make `Layout/FirstMethodArgumentLineBreak` aware of calling using `super`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I've noticed that
FirstMethodArgumentLineBreak
cop doesn't work forsuper
call.Expected behavior
Offenses from
FirstMethodArgumentLineBreak
cop about code withsuper
.Actual behavior
There are no offenses.
Steps to reproduce the problem
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:The text was updated successfully, but these errors were encountered: