Class: MetzScan::Analyzers::NamespaceLeakPressure::Finding
- Inherits:
-
Struct
- Object
- Struct
- MetzScan::Analyzers::NamespaceLeakPressure::Finding
- Defined in:
- lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#declaration_name ⇒ Object
Returns the value of attribute declaration_name.
-
#declared_package ⇒ Object
Returns the value of attribute declared_package.
-
#home_namespace ⇒ Object
Returns the value of attribute home_namespace.
-
#message ⇒ Object
Returns the value of attribute message.
-
#primary_location ⇒ Object
Returns the value of attribute primary_location.
-
#project_analyzer_metadata ⇒ Object
Returns the value of attribute project_analyzer_metadata.
-
#project_analyzer_status ⇒ Object
Returns the value of attribute project_analyzer_status.
-
#references ⇒ Object
Returns the value of attribute references.
-
#referring_files ⇒ Object
Returns the value of attribute referring_files.
-
#referring_packages ⇒ Object
Returns the value of attribute referring_packages.
-
#rule_id ⇒ Object
Returns the value of attribute rule_id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#suggested_next_moves ⇒ Object
Returns the value of attribute suggested_next_moves.
-
#triage_severity ⇒ Object
Returns the value of attribute triage_severity.
-
#triage_summary ⇒ Object
Returns the value of attribute triage_summary.
-
#why_it_matters ⇒ Object
Returns the value of attribute why_it_matters.
Instance Method Summary collapse
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def confidence @confidence end |
#declaration_name ⇒ Object
Returns the value of attribute declaration_name
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def declaration_name @declaration_name end |
#declared_package ⇒ Object
Returns the value of attribute declared_package
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def declared_package @declared_package end |
#home_namespace ⇒ Object
Returns the value of attribute home_namespace
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def home_namespace @home_namespace end |
#message ⇒ Object
Returns the value of attribute message
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def @message end |
#primary_location ⇒ Object
Returns the value of attribute primary_location
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def primary_location @primary_location end |
#project_analyzer_metadata ⇒ Object
Returns the value of attribute project_analyzer_metadata
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def @project_analyzer_metadata end |
#project_analyzer_status ⇒ Object
Returns the value of attribute project_analyzer_status
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def project_analyzer_status @project_analyzer_status end |
#references ⇒ Object
Returns the value of attribute references
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def references @references end |
#referring_files ⇒ Object
Returns the value of attribute referring_files
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def referring_files @referring_files end |
#referring_packages ⇒ Object
Returns the value of attribute referring_packages
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def referring_packages @referring_packages end |
#rule_id ⇒ Object
Returns the value of attribute rule_id
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def rule_id @rule_id end |
#source ⇒ Object
Returns the value of attribute source
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def source @source end |
#suggested_next_moves ⇒ Object
Returns the value of attribute suggested_next_moves
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def suggested_next_moves @suggested_next_moves end |
#triage_severity ⇒ Object
Returns the value of attribute triage_severity
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def triage_severity @triage_severity end |
#triage_summary ⇒ Object
Returns the value of attribute triage_summary
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def triage_summary @triage_summary end |
#why_it_matters ⇒ Object
Returns the value of attribute why_it_matters
8 9 10 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 8 def why_it_matters @why_it_matters end |
Instance Method Details
#report_occurrences ⇒ Object
13 14 15 |
# File 'lib/metz_scan/analyzers/namespace_leak_pressure/finding.rb', line 13 def report_occurrences [Occurrence.from(primary_location, context: declaration_name)].compact end |