class RuboCop::ConfigLoader

def configuration_from_file(config_file, check: true)

def configuration_from_file(config_file, check: true)
  return default_configuration if config_file == DEFAULT_FILE
  config = load_file(config_file, check: check)
  if ignore_parent_exclusion?
    print 'Ignoring AllCops/Exclude from parent folders' if debug?
  else
    add_excludes_from_files(config, config_file)
  end
  merge_with_default(config, config_file).tap do |merged_config|
    warn_on_pending_cops(merged_config.pending_cops) unless possible_new_cops?(merged_config)
  end
end