lib/rubocop_challenger/go.rb
# If still exist the rule after a challenge, the rule regard as cannot
# correct automatically then add to ignore list and it is not chosen as
# target rule from next time.
#
# @param rule [Rubocop::Rule] The corrected rule
If still exist the rule after a challenge, the rule regard as cannot
correct automatically then add to ignore list and it is not chosen as
target rule from next time.
If still exist the rule after a challenge the rule regard as cannot correct automatically then add to ignore list and it is not chosen as target rule from next time .
def add_to_ignore_list_if_challenge_is_incomplete(rule)
      return unless autocorrect_incomplete?(rule)
      pull_request.commit! ':police_car: add the rule to the ignore list' do
        config_editor = Rubocop::ConfigEditor.new
        config_editor.add_ignore(rule)
        config_editor.save
      end
      puts Rainbow(DESCRIPTION_THAT_CHALLENGE_IS_INCOMPLETE).yellow
    end
def add_to_ignore_list_if_challenge_is_incomplete ( rule ) return unless autocorrect_incomplete? ( rule ) pull_request . commit! ':police_car: add the rule to the ignore list' do config_editor = Rubocop :: ConfigEditor . new config_editor . add_ignore ( rule ) config_editor . save end puts Rainbow ( DESCRIPTION_THAT_CHALLENGE_IS_INCOMPLETE ) . yellow end
If still exist the rule after a challenge, the rule regard as cannot
correct automatically then add to ignore list and it is not chosen as
target rule from next time.
If still exist the rule after a challenge the rule regard as cannot correct automatically then add to ignore list and it is not chosen as target rule from next time .
rule
The corrected rule
The corrected rule