Pattern: Malformed indentation for access modifier
Issue: -
Modifiers should be indented as deep as method definitions, or as deep
as the class
/module
keyword, depending on configuration.
# EnforcedStyle: indent (default)
# bad
class Plumbus
private
def smooth; end
end
# good
class Plumbus
private
def smooth; end
end
# EnforcedStyle: outdent
# bad
class Plumbus
private
def smooth; end
end
# good
class Plumbus
private
def smooth; end
end
Attribute | Value |
---|---|
EnforcedStyle | indent |
SupportedStyles | outdent, indent |
IndentationWidth |