Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes the following build error. ```consle % bundle exec rake (snip) Offenses: lib/rubocop/cop/rails/delegate.rb:103:13: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. include_prefix_case? && method_name == prefixed_method_name(body) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/rails/dynamic_find_by.rb:43:21: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. return if node.receiver.nil? && !inherit_active_record_base?(node) || allowed_invocation?(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/rails/http_positional_arguments.rb:72:15: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. format_arg?(pair.key) && data.pairs.one? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/rails/pluralization_grammar.rb:64:11: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. singular_receiver?(number) && plural_method?(node.method_name) || ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/rails/pluralization_grammar.rb:65:13: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. plural_receiver?(number) && singular_method?(node.method_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/cop/rails/reversible_migration.rb:346:13: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. ancestor.block_type? && ... ^^^^^^^^^^^^^^^^^^^^^^^ 218 files inspected, 6 offenses detected, 6 offenses auto-correctable ```
- Loading branch information