Pattern: Malformed indentation width
Issue: -
This rule checks for indentation that doesn't use the specified number of spaces.
# bad, Width: 2
class A
def test
puts 'hello'
end
end
# bad, Width: 2,
IgnoredPatterns:
- '^\s*module'
module A
class B
def test
puts 'hello'
end
end
end
# good, Width: 2
class A
def test
puts 'hello'
end
end
# good, Width: 2,
IgnoredPatterns:
- '^\s*module'
module A
class B
def test
puts 'hello'
end
end
end
Attribute | Value |
---|---|
Width | 2 |
IgnoredPatterns |