Skip to content
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

Error running Layout/EmptyLinesAroundArguments cop #9140

Closed
fran-worley opened this issue Dec 2, 2020 · 0 comments · Fixed by #9142
Closed

Error running Layout/EmptyLinesAroundArguments cop #9140

fran-worley opened this issue Dec 2, 2020 · 0 comments · Fixed by #9142
Labels

Comments

@fran-worley
Copy link

Expected behavior

Expected cops to run without errors being raised

Actual behavior

The following errors occured:
An error occurred while Layout/EmptyLinesAroundArguments cop was inspecting .....

Steps to reproduce the problem

Anywhere I use the call syntax, with the arguments on the next line, I get a hard error for rubocop.

Klass.(
  key_1: 'hello',
  key_2: 'world'
)

RuboCop version

$ [bundle exec] rubocop -V
1.5.0 (using Parser 2.7.2.0, rubocop-ast 1.3.0, running on ruby 2.6.6 x86_64-darwin19)
  - rubocop-performance 1.9.1
@koic koic added the bug label Dec 2, 2020
koic added a commit to koic/rubocop that referenced this issue Dec 2, 2020
Fixes rubocop#9140.

This PR fixes an error for `Layout/EmptyLinesAroundArguments`
when multiline style argument for method call without selector.
bbatsov pushed a commit that referenced this issue Dec 2, 2020
Fixes #9140.

This PR fixes an error for `Layout/EmptyLinesAroundArguments`
when multiline style argument for method call without selector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants