class RuboCop::ConfigValidator
def check_cop_config_value(hash, parent = nil)
def check_cop_config_value(hash, parent = nil) hash.each do |key, value| check_cop_config_value(value, key) if value.is_a?(Hash) next unless CONFIG_CHECK_KEYS.include?(key) && value.is_a?(String) next if key == 'Enabled' && CONFIG_CHECK_DEPARTMENTS.include?(value) raise ValidationError, msg_not_boolean(parent, key, value) end end