We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have a code like:
validates_presence_of(:user, :address)
The autocorrection of Rails/Validation will generate code with incorrect syntax.
Rails/Validation
validates :user, :address, presence: true
validates(:user, :address), presence: true
rubocop -a
$ [bundle exec] rubocop -V 0.65.0 (using Parser 2.5.3.0, running on ruby 2.5.3 x86_64-darwin16)
The text was updated successfully, but these errors were encountered:
[Fix rubocop#6800] Fix an incorrect auto-correct for Rails/Validation
171e557
Fixes rubocop#6800. This PR fixes an incorrect auto-correct for `Rails/Validation` when method arguments are enclosed in parentheses.
Thanks for the feedback. I opened a PR #6807.
Sorry, something went wrong.
Merge pull request #6807 from koic/fix_incorrect_autocorrect_for_rail…
30919f1
…s_validation [Fix #6800] Fix an incorrect auto-correct for `Rails/Validation`
Successfully merging a pull request may close this issue.
If you have a code like:
The autocorrection of
Rails/Validation
will generate code with incorrect syntax.Expected behavior
Actual behavior
Steps to reproduce the problem
validates_presence_of(:user, :address)
rubocop -a
RuboCop version
The text was updated successfully, but these errors were encountered: