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 Rails/UniqueValidationWithoutIndex cop was inspecting #361

Closed
dmarcoux opened this issue Sep 16, 2020 · 2 comments
Closed

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 two occasions. Here are the exact lines which caused issues:

validates :name, uniqueness: { scope: :status_report, case_sensitive: true }
validates :bs_request_id, numericality: true, uniqueness: { scope: :staging_workflow_id, message: 'is already excluded' }

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 transferred this issue from rubocop/rubocop Sep 16, 2020
@koic
Copy link
Member

koic commented Sep 16, 2020

May be dup with #348. RuboCop Rails 2.8.1 was released yesterday. Can you upgrade to the latest RuboCop Rails?

@dmarcoux
Copy link
Author

May be dup with #348. RuboCop Rails 2.8.1 was released yesterday. Can you upgrade to the latest RuboCop Rails?

Upgrading rubocop-rails did fix the issue. Sorry for not submitting the issue in the right repository and not looking if there was a new release.

Thank you very much for the work you do with RuboCop, it's really appreciated.

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