You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that rubocop does not throw an error on the where.not clause.
Actual behavior
It throws the following error An error occurred while Rails/WhereNotWithMultipleConditions cop was inspecting /Users/thiemoseys/nephroflow/nephroflow-api/MVP_rubocop.rb:1:0.
Steps to reproduce the problem
Make a ruby file with for example the line below that we use to check for empty jsonb columns in postgresql. instances.where.not(data: {})
then run rubocop -A 'file'.rb
The text was updated successfully, but these errors were encountered:
thiemonipro
changed the title
False positive in Rails/WhereNotWithMultipleConditions
False positive in Rails/WhereNotWithMultipleConditionsOct 25, 2022
Expected behavior
I would expect that rubocop does not throw an error on the where.not clause.
Actual behavior
It throws the following error
An error occurred while Rails/WhereNotWithMultipleConditions cop was inspecting /Users/thiemoseys/nephroflow/nephroflow-api/MVP_rubocop.rb:1:0.
Steps to reproduce the problem
Make a ruby file with for example the line below that we use to check for empty jsonb columns in postgresql.
instances.where.not(data: {})
then run rubocop -A 'file'.rb
RuboCop version
The text was updated successfully, but these errors were encountered: