Class: CleoQualityReview::Runner::AnalysisContext
- Inherits:
-
Struct
- Object
- Struct
- CleoQualityReview::Runner::AnalysisContext
- Defined in:
- lib/cleo_quality_review/runner.rb
Overview
Grouped values resolved at the start of an analysis run
Instance Attribute Summary collapse
-
#base_ref ⇒ Object
Returns the value of attribute base_ref.
-
#changes ⇒ Object
Returns the value of attribute changes.
-
#check_classes ⇒ Object
Returns the value of attribute check_classes.
-
#review_id ⇒ Object
Returns the value of attribute review_id.
-
#target ⇒ Object
Returns the value of attribute target.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#run_attributes ⇒ Hash
Run construction attributes derived from this context.
Instance Attribute Details
#base_ref ⇒ Object
Returns the value of attribute base_ref
20 21 22 |
# File 'lib/cleo_quality_review/runner.rb', line 20 def base_ref @base_ref end |
#changes ⇒ Object
Returns the value of attribute changes
20 21 22 |
# File 'lib/cleo_quality_review/runner.rb', line 20 def changes @changes end |
#check_classes ⇒ Object
Returns the value of attribute check_classes
20 21 22 |
# File 'lib/cleo_quality_review/runner.rb', line 20 def check_classes @check_classes end |
#review_id ⇒ Object
Returns the value of attribute review_id
20 21 22 |
# File 'lib/cleo_quality_review/runner.rb', line 20 def review_id @review_id end |
#target ⇒ Object
Returns the value of attribute target
20 21 22 |
# File 'lib/cleo_quality_review/runner.rb', line 20 def target @target end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
20 21 22 |
# File 'lib/cleo_quality_review/runner.rb', line 20 def @timestamp end |
Instance Method Details
#run_attributes ⇒ Hash
Returns run construction attributes derived from this context.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cleo_quality_review/runner.rb', line 23 def run_attributes { timestamp: , base_ref: base_ref, review_id: review_id, checks: check_classes.map(&:check_name), target_files: target.files, ruby_files: target.ruby_files, } end |