Class: Rigor::ConfigAudit::Warning

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



28
29
30
# File 'lib/rigor/config_audit.rb', line 28

def fields
  @fields
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



28
29
30
# File 'lib/rigor/config_audit.rb', line 28

def kind
  @kind
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



28
29
30
# File 'lib/rigor/config_audit.rb', line 28

def message
  @message
end

Instance Method Details

#to_hObject



29
30
31
# File 'lib/rigor/config_audit.rb', line 29

def to_h
  { "kind" => kind.to_s, "message" => message }.merge(fields)
end