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 occurs for Style/MultilineMethodCallIndentation #2958

Closed
NobodysNightmare opened this issue Mar 14, 2016 · 1 comment
Closed

Error occurs for Style/MultilineMethodCallIndentation #2958

NobodysNightmare opened this issue Mar 14, 2016 · 1 comment

Comments

@NobodysNightmare
Copy link
Contributor

Expected behavior

Rubocop throws no error messages

Actual behavior

$ rubocop test.rb 
Inspecting 1 file
An error occurred while Style/MultilineMethodCallIndentation cop was inspecting /home/jan/Desktop/test.rb.
To see the complete backtrace run rubocop -d.
.

1 file inspected, no offenses detected

1 error occurred:
An error occurred while Style/MultilineMethodCallIndentation cop was inspecting /home/jan/Desktop/test.rb.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
Mention the following information in the issue report:
0.38.0 (using Parser 2.3.0.6, running on ruby 2.3.0 x86_64-linux)

Steps to reproduce the problem

Given a file called test.rb:

def foo
  !0
  .nil?
end

Run:

$ rubocop test.rb

The problem seems to be with the negation of the first line.

RuboCop version

$ rubocop -V
0.38.0 (using Parser 2.3.0.6, running on ruby 2.3.0 x86_64-linux)
@alexdowad
Copy link
Contributor

Just added a fix to my open PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants