Skip to content

Files

Latest commit

 

History

History
36 lines (25 loc) · 717 Bytes

Layout-SpaceBeforeFirstArg.md

File metadata and controls

36 lines (25 loc) · 717 Bytes

Pattern: Missing space before first method argument

Issue: -

Description

Checks that exactly one space is used between a method name and the first argument for method calls without parentheses.

Alternatively, extra spaces can be added to align the argument with something on a preceding or following line, if the AllowForAlignment config parameter is true.

Examples

# bad
something  x
something   y, z
something'hello'

# good
something x
something y, z
something 'hello'

Default configuration

Attribute Value
AllowForAlignment true

Further Reading