class RuboCop::ConfigValidator
def validate_new_cops_parameter
def validate_new_cops_parameter new_cop_parameter = @config.for_all_cops['NewCops'] return if new_cop_parameter.nil? || NEW_COPS_VALUES.include?(new_cop_parameter) message = "invalid #{new_cop_parameter} for `NewCops` found in" \ "#{smart_loaded_path}\n" \ "Valid choices are: #{NEW_COPS_VALUES.join(', ')}" raise ValidationError, message end