Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
``` Offenses: lib/rubocop/ast/node/mixin/predicate_operator_node.rb:28:9: C: [Correctable] Style/MultipleComparison: Avoid comparing a variable with multiple items in a conditional, use Array#include? instead. operator == LOGICAL_AND || operator == LOGICAL_OR ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/ast/node/mixin/predicate_operator_node.rb:35:9: C: [Correctable] Style/MultipleComparison: Avoid comparing a variable with multiple items in a conditional, use Array#include? instead. operator == SEMANTIC_AND || operator == SEMANTIC_OR ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/rubocop/ast/token.rb:86:9: C: [Correctable] Style/MultipleComparison: Avoid comparing a variable with multiple items in a conditional, use Array#include? instead. type == :tLCURLY || type == :tLAMBEG ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` Although these constants are private, they are referenced in `OrNode` and `AndNode`
- Loading branch information