-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Rails/Validation
does not cover validates_comparison_of
#1295
Comments
ChaelCodes
added a commit
to ChaelCodes/rubocop-rails
that referenced
this issue
Jun 13, 2024
Rails/Validations should include all old-style validation helpers, including validates_comparison_of.
ChaelCodes
added a commit
to ChaelCodes/rubocop-rails
that referenced
this issue
Jun 13, 2024
Rails/Validations should include all old-style validation helpers, including validates_comparison_of.
8 tasks
ChaelCodes
added a commit
to ChaelCodes/rubocop-rails
that referenced
this issue
Jun 19, 2024
Rails/Validation should include all old-style validation helpers, including validates_comparison_of.
koic
added a commit
that referenced
this issue
Jun 21, 2024
…s-comparison [Fix #1295] Covers validates_comparison_of in Rails/Validations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently Rails/Validation does not cover the validation helper
validates_comparison_of
.Expected behavior
For a model with the following validations:
Both validation helpers raise an error if Rails/Validation is Enabled.
Actual behavior
Only validates_presence_of triggers an error.
Steps to reproduce the problem
Add the old-style attribute validation macro for comparison to a model.
Run rubocop.
RuboCop version
The text was updated successfully, but these errors were encountered: