Ameba::Rule::Layout::LineLength
Inherits YAML::Serializable::Strict < YAML::Serializable < Ameba::Rule::Base < Ameba::Config::RuleConfig < Reference < Object
A rule that disallows lines longer than max_length number of symbols.
YAML configuration example:
Layout/LineLength:
Enabled: true
MaxLength: 100
Constants
MSG = "Line too long"
Constructors
new(config = nil)
A rule that disallows lines longer than max_length number of symbols.
YAML configuration example:
Layout/LineLength:
Enabled: true
MaxLength: 100
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance methods
description
description=(description : String)
enabled=(enabled : Bool)
enabled?
excluded
max_length
max_length=(max_length : Int32)
severity
severity=(severity : Ameba::Severity)
since_version
Sourcesince_version=(since_version : String)
test(source)
Source