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/UselessTimes cop was inspecting #8730

Closed
dmarcoux opened this issue Sep 16, 2020 · 0 comments · Fixed by #8733
Closed

An error occurred while Lint/UselessTimes cop was inspecting #8730

dmarcoux opened this issue Sep 16, 2020 · 0 comments · Fixed by #8733
Labels

Comments

@dmarcoux
Copy link

Expected behavior

RuboCop successfully lints files.

Actual behavior

RuboCop crashed while linting files.

Steps to reproduce the problem

RuboCop crashed on this line: https://github.com/openSUSE/open-build-service/blob/3495afcea9789a0b0205841266742df7cce034c4/src/api/app/models/user_ldap_strategy.rb#L197

RuboCop version

0.91.0 (using Parser 2.7.1.4, rubocop-ast 0.4.0, running on ruby 2.5.8 x86_64-linux-gnu)
@koic koic added the bug label Sep 16, 2020
koic added a commit to koic/rubocop that referenced this issue Sep 16, 2020
Fixes rubocop#8730.

This PR fixes an error for `Lint/UselessTimes`
when there is a blank line in the method definition.
koic added a commit that referenced this issue Sep 16, 2020
[Fix #8730] Fix an error for `Lint/UselessTimes`
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