Class: MetzScan::Analyzers::PackageDependencyPressure::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/metz_scan/analyzers/package_dependency_pressure/finding.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def confidence
  @confidence
end

#declaration_nameObject

Returns the value of attribute declaration_name

Returns:

  • (Object)

    the current value of declaration_name



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def declaration_name
  @declaration_name
end

#declared_packageObject

Returns the value of attribute declared_package

Returns:

  • (Object)

    the current value of declared_package



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def declared_package
  @declared_package
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def message
  @message
end

#primary_locationObject

Returns the value of attribute primary_location

Returns:

  • (Object)

    the current value of primary_location



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def primary_location
  @primary_location
end

#project_analyzer_metadataObject

Returns the value of attribute project_analyzer_metadata

Returns:

  • (Object)

    the current value of project_analyzer_metadata



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def 
  @project_analyzer_metadata
end

#project_analyzer_statusObject

Returns the value of attribute project_analyzer_status

Returns:

  • (Object)

    the current value of project_analyzer_status



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def project_analyzer_status
  @project_analyzer_status
end

#referencesObject

Returns the value of attribute references

Returns:

  • (Object)

    the current value of references



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def references
  @references
end

#referring_filesObject

Returns the value of attribute referring_files

Returns:

  • (Object)

    the current value of referring_files



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def referring_files
  @referring_files
end

#referring_packagesObject

Returns the value of attribute referring_packages

Returns:

  • (Object)

    the current value of referring_packages



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def referring_packages
  @referring_packages
end

#rule_idObject

Returns the value of attribute rule_id

Returns:

  • (Object)

    the current value of rule_id



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def rule_id
  @rule_id
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def source
  @source
end

#suggested_next_movesObject

Returns the value of attribute suggested_next_moves

Returns:

  • (Object)

    the current value of suggested_next_moves



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def suggested_next_moves
  @suggested_next_moves
end

#triage_severityObject

Returns the value of attribute triage_severity

Returns:

  • (Object)

    the current value of triage_severity



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def triage_severity
  @triage_severity
end

#triage_summaryObject

Returns the value of attribute triage_summary

Returns:

  • (Object)

    the current value of triage_summary



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def triage_summary
  @triage_summary
end

#why_it_mattersObject

Returns the value of attribute why_it_matters

Returns:

  • (Object)

    the current value of why_it_matters



8
9
10
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 8

def why_it_matters
  @why_it_matters
end

Instance Method Details

#report_occurrencesObject



13
14
15
# File 'lib/metz_scan/analyzers/package_dependency_pressure/finding.rb', line 13

def report_occurrences
  [Occurrence.from(primary_location, context: declaration_name)].compact
end