Skip to content

Files

Latest commit

 

History

History
43 lines (35 loc) · 610 Bytes

Layout-SpaceAroundMethodCallOperator.md

File metadata and controls

43 lines (35 loc) · 610 Bytes

Pattern: Use of space around method call operator

Issue: -

Description

Checks method call operators to not have spaces around them.

Examples

# bad
foo. bar
foo .bar
foo . bar
foo. bar .buzz
foo
  . bar
  . buzz
foo&. bar
foo &.bar
foo &. bar
foo &. bar&. buzz
RuboCop:: Cop
RuboCop:: Cop:: Cop
:: RuboCop::Cop

# good
foo.bar
foo.bar.buzz
foo
  .bar
  .buzz
foo&.bar
foo&.bar&.buzz
RuboCop::Cop
RuboCop::Cop::Cop
::RuboCop::Cop

Further Reading