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

An error occurred while Lint/ShadowedException cop #3342

Closed
tmtm opened this issue Jul 26, 2016 · 2 comments
Closed

An error occurred while Lint/ShadowedException cop #3342

tmtm opened this issue Jul 26, 2016 · 2 comments
Labels

Comments

@tmtm
Copy link
Contributor

tmtm commented Jul 26, 2016

Expected behavior

Do not occur error.

Actual behavior

% rubocop
Inspecting 1 file
An error occurred while Lint/ShadowedException cop was inspecting /tmp/x/foo.rb.
To see the complete backtrace run rubocop -d.
.

1 file inspected, no offenses detected

1 error occurred:
An error occurred while Lint/ShadowedException cop was inspecting /tmp/x/foo.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.42.0 (using Parser 2.3.1.2, running on ruby 2.1.8 x86_64-linux)

Steps to reproduce the problem

Run rubocop for following ruby script.

# foo
class Foo
  def start
    begin
      p 123
    rescue StandardError, RuntimeError
      p 456
    rescue
      p 789
    end
    p 0
  end
end

RuboCop version

% rubocop -V
0.42.0 (using Parser 2.3.1.2, running on ruby 2.1.8 x86_64-linux)
@jonas054 jonas054 added the bug label Jul 30, 2016
@Drenmi
Copy link
Collaborator

Drenmi commented Aug 8, 2016

@jonas054: This looks like it was fixed in #3375, but the commit has the wrong issue number.

@jonas054
Copy link
Collaborator

@Drenmi You are correct, sir.

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

No branches or pull requests

3 participants