Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress
Lint/AmbiguousOperatorPrecedence
offense
This PR suppresses the following `Lint/AmbiguousOperatorPrecedence` offense. ```console % bundle exec rake (snip) Offenses: lib/rubocop/ast/node.rb:428:44: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. return true if special_keyword? || send_type? && prefix_not? ^^^^^^^^^^^^^^^^^^^^^^^^^ spec/rubocop/ast/node_pattern/lexer_spec.rb:70:27: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. expect(types).to eq [:tNODE_TYPE] * 2 + [:tPARAM_CONST] * 7 ^^^^^^^^^^^^^^^^^ spec/rubocop/ast/node_pattern/lexer_spec.rb:70:47: W: [Correctable] Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity. expect(types).to eq [:tNODE_TYPE] * 2 + [:tPARAM_CONST] * 7 ^^^^^^^^^^^^^^^^^^^ 162 files inspected, 3 offenses detected, 3 offenses auto-correctable ``` https://github.com/rubocop/rubocop-ast/pull/206/checks?check_run_id=3501466011
- Loading branch information