Class: Rigor::ConfigAudit::Warning
- Inherits:
-
Data
- Object
- Data
- Rigor::ConfigAudit::Warning
- Defined in:
- lib/rigor/config_audit.rb
Overview
One config-level finding. ‘kind` discriminates the source key (`:signature_path`, `:library`, `:disabled_rule`, `:severity_override`, `:bundler_bundle_path`, `:bundler_lockfile`, `:rbs_collection_lockfile`); `fields` carries the kind-specific structured data merged into #to_h for JSON consumers.
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields
32 33 34 |
# File 'lib/rigor/config_audit.rb', line 32 def fields @fields end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
32 33 34 |
# File 'lib/rigor/config_audit.rb', line 32 def kind @kind end |
#message ⇒ Object (readonly)
Returns the value of attribute message
32 33 34 |
# File 'lib/rigor/config_audit.rb', line 32 def @message end |
Instance Method Details
#to_h ⇒ Object
33 34 35 |
# File 'lib/rigor/config_audit.rb', line 33 def to_h { "kind" => kind.to_s, "message" => }.merge(fields) end |