class Rubocop::Formatter::DisabledConfigFormatter
detected any offences are disabled.
This formatter displays a YAML configuration file where all cops that
def file_finished(file, offences)
def file_finished(file, offences) @cops_with_offences ||= {} offences.each { |o| @cops_with_offences[o.cop_name] = true } end
def finished(inspected_files)
def finished(inspected_files) output.puts HEADING @cops_with_offences.keys.sort.each do |cop_name| output.puts output.puts "#{cop_name}:" output.puts ' Enabled: false' end puts "Created #{output.path}." puts "Run rubocop with --config #{output.path}, or" puts "add inherit_from: #{output.path} in a .rubocop.yml file." end