Pattern: Redundant .
before operator
Issue: -
Checks for redundant dot before operator method call.
The target operator methods are |
, ^
, &
, <=>
, ==
, ===
, =~
, >
, >=
, <
, <=
, <<
, >>
, +
, -
, *
, /
, %
, **
, ~
, !
, !=
, and !~
.
# bad
foo.+ bar
foo.& bar
# good
foo + bar
foo & bar