Skip to content

Files

Latest commit

 

History

History
45 lines (33 loc) · 679 Bytes

Layout-IndentationStyle.md

File metadata and controls

45 lines (33 loc) · 679 Bytes

Pattern: Inconsistent indentation

Issue: -

Description

This rule checks that the indentation method is consistent. Either tabs only or spaces only are used for indentation.

Examples

EnforcedStyle: spaces (default)

# bad
# This example uses a tab to indent bar.
def foo
  bar
end

# good
# This example uses spaces to indent bar.
def foo
  bar
end

EnforcedStyle: tabs

# bad
# This example uses spaces to indent bar.
def foo
  bar
end

# good
# This example uses a tab to indent bar.
def foo
  bar
end

Further Reading