Class: RubocopChallenger::Go
- Inherits:
-
Object
- Object
- RubocopChallenger::Go
- Defined in:
- lib/rubocop_challenger/go.rb
Overview
Executes Rubocop Challenge flow
Instance Method Summary collapse
-
#exec ⇒ Object
Executes Rubocop Challenge flow.
-
#initialize(options) ⇒ Go
constructor
A new instance of Go.
Constructor Details
#initialize(options) ⇒ Go
Returns a new instance of Go.
33 34 35 |
# File 'lib/rubocop_challenger/go.rb', line 33 def initialize() @options = end |
Instance Method Details
#exec ⇒ Object
Executes Rubocop Challenge flow
41 42 43 44 45 46 47 48 |
# File 'lib/rubocop_challenger/go.rb', line 41 def exec update_rubocop! before_version, after_version = regenerate_rubocop_todo! corrected_rule = rubocop_challenge!(before_version, after_version) regenerate_rubocop_todo! add_to_ignore_list_if_challenge_is_incomplete(corrected_rule) create_pull_request!(corrected_rule) end |