class RuboCop::ConfigObsoletion

def load_parameter_rules(rules)

rule object.
and are given as an array. Each combination is turned into a separate
Parameter rules may apply to multiple cops and multiple parameters
def load_parameter_rules(rules)
  rules.flat_map do |rule_type, data|
    data.flat_map do |configuration|
      cops = Array(configuration['cops'])
      parameters = Array(configuration['parameters'])
      cops.product(parameters).map do |cop, parameter|
        PARAMETER_RULE_CLASSES[rule_type].new(@config, cop, parameter, configuration)
      end
    end
  end
end