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
28 29 30 |
# File 'lib/rigor/config_audit.rb', line 28 def fields @fields end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
28 29 30 |
# File 'lib/rigor/config_audit.rb', line 28 def kind @kind end |
#message ⇒ Object (readonly)
Returns the value of attribute message
28 29 30 |
# File 'lib/rigor/config_audit.rb', line 28 def @message end |
Instance Method Details
#to_h ⇒ Object
29 30 31 |
# File 'lib/rigor/config_audit.rb', line 29 def to_h { "kind" => kind.to_s, "message" => }.merge(fields) end |