class RuboCop::ConfigValidator
def reject_conflicting_safe_settings
def reject_conflicting_safe_settings @config.each do |name, cop_config| next unless cop_config.is_a?(Hash) next unless cop_config['Safe'] == false && cop_config['SafeAutoCorrect'] == true msg = 'Unsafe cops cannot have a safe auto-correction ' \ "(section #{name} in #{smart_loaded_path})" raise ValidationError, msg end end