Skip to content

Files

Latest commit

 

History

History
33 lines (22 loc) · 645 Bytes

Layout-ExtraSpacing.md

File metadata and controls

33 lines (22 loc) · 645 Bytes

Pattern: Unnecessary spacing

Issue: -

Description

This rule checks for extra/unnecessary whitespace.

Examples

# good if AllowForAlignment is true
name      = "RuboCop"
# Some comment and an empty line

website  += "/bbatsov/rubocop" unless cond
puts        "rubocop"          if     debug

# bad for any configuration
set_app("RuboCop")
website  = "https://github.com/bbatsov/rubocop"

Default configuration

Attribute Value
AllowForAlignment true
ForceEqualSignAlignment false

Further Reading