Class: MetzScan::Analyzers::RepeatedQueryCriteria::Finding
- Inherits:
-
Struct
- Object
- Struct
- MetzScan::Analyzers::RepeatedQueryCriteria::Finding
- Defined in:
- lib/metz_scan/analyzers/repeated_query_criteria.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#criteria_keys ⇒ Object
Returns the value of attribute criteria_keys.
-
#message ⇒ Object
Returns the value of attribute message.
-
#occurrences ⇒ Object
Returns the value of attribute occurrences.
-
#project_analyzer_metadata ⇒ Object
Returns the value of attribute project_analyzer_metadata.
-
#project_analyzer_status ⇒ Object
Returns the value of attribute project_analyzer_status.
-
#query ⇒ Object
Returns the value of attribute query.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
-
#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
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def confidence @confidence end |
#criteria_keys ⇒ Object
Returns the value of attribute criteria_keys
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def criteria_keys @criteria_keys end |
#message ⇒ Object
Returns the value of attribute message
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def @message end |
#occurrences ⇒ Object
Returns the value of attribute occurrences
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def occurrences @occurrences end |
#project_analyzer_metadata ⇒ Object
Returns the value of attribute project_analyzer_metadata
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def @project_analyzer_metadata end |
#project_analyzer_status ⇒ Object
Returns the value of attribute project_analyzer_status
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def project_analyzer_status @project_analyzer_status end |
#query ⇒ Object
Returns the value of attribute query
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def query @query end |
#receiver ⇒ Object
Returns the value of attribute receiver
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def receiver @receiver end |
#referring_files ⇒ Object
Returns the value of attribute referring_files
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def referring_files @referring_files end |
#referring_packages ⇒ Object
Returns the value of attribute referring_packages
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def referring_packages @referring_packages end |
#rule_id ⇒ Object
Returns the value of attribute rule_id
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def rule_id @rule_id end |
#source ⇒ Object
Returns the value of attribute source
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def source @source end |
#suggested_next_moves ⇒ Object
Returns the value of attribute suggested_next_moves
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def suggested_next_moves @suggested_next_moves end |
#triage_severity ⇒ Object
Returns the value of attribute triage_severity
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def triage_severity @triage_severity end |
#triage_summary ⇒ Object
Returns the value of attribute triage_summary
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def triage_summary @triage_summary end |
#why_it_matters ⇒ Object
Returns the value of attribute why_it_matters
32 33 34 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32 def why_it_matters @why_it_matters end |
Instance Method Details
#report_occurrences ⇒ Object
37 38 39 40 |
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 37 def report_occurrences occurrence = occurrences.first [Occurrence.from(occurrence, context: occurrence&.context)].compact end |