Skip to content

Files

Latest commit

 

History

History
25 lines (16 loc) · 499 Bytes

Style-OperatorMethodCall.md

File metadata and controls

25 lines (16 loc) · 499 Bytes

Pattern: Redundant . before operator

Issue: -

Description

Checks for redundant dot before operator method call.

The target operator methods are |, ^, &, <=>, ==, ===, =~, >, >=, <, <=, <<, >>, +, -, *, /, %, **, ~, !, !=, and !~.

Examples

# bad
foo.+ bar
foo.& bar

# good
foo + bar
foo & bar

Further Reading