Class: Semverve::FixResult
- Inherits:
-
Object
- Object
- Semverve::FixResult
- Defined in:
- lib/semverve/fix_result.rb
Overview
Result of fixing one Semverve check surface.
Instance Attribute Summary collapse
-
#bundle_lock_ran ⇒ Boolean
readonly
Whether the fix ran
bundle lock. -
#changed_files ⇒ Array<String>
readonly
Files changed by the fix.
-
#replacement_count ⇒ Integer
readonly
Number of replacements made.
Instance Method Summary collapse
-
#initialize(changed_files:, replacement_count:, bundle_lock_ran: false) ⇒ Semverve::FixResult
constructor
Initializes a fix result.
Constructor Details
#initialize(changed_files:, replacement_count:, bundle_lock_ran: false) ⇒ Semverve::FixResult
Initializes a fix result.
33 34 35 36 37 |
# File 'lib/semverve/fix_result.rb', line 33 def initialize(changed_files:, replacement_count:, bundle_lock_ran: false) @changed_files = changed_files @replacement_count = replacement_count @bundle_lock_ran = bundle_lock_ran end |
Instance Attribute Details
#bundle_lock_ran ⇒ Boolean (readonly)
Whether the fix ran bundle lock.
23 24 25 |
# File 'lib/semverve/fix_result.rb', line 23 def bundle_lock_ran @bundle_lock_ran end |
#changed_files ⇒ Array<String> (readonly)
Files changed by the fix.
11 12 13 |
# File 'lib/semverve/fix_result.rb', line 11 def changed_files @changed_files end |
#replacement_count ⇒ Integer (readonly)
Number of replacements made.
17 18 19 |
# File 'lib/semverve/fix_result.rb', line 17 def replacement_count @replacement_count end |