AmebaConfig::Rule
Describes a single ameba rule discovered via the ameba CLI.
default_settings mirrors the order ameba prints in its YAML configuration
example so generated output stays deterministic. The Enabled key is
injected from the rule listing's enabled-by-default flag because the
example always shows Enabled: true regardless of the actual default.
Constructors
Instance methods
Returns the default value for a single setting, or nil if the rule does not declare such a setting.
default_settings
Sourcedefaults_hash
Returns the complete defaults hash, used when materializing all settings for a rule that is being kept in the generated config.
detailed_description
Sourceenabled_by_default?
Sourcegroup
SourceReturns true if setting is a known setting for this rule.
name
Sourceseverity
Sourceshort_description
Sourceshort_name
Source