global

def file_finished(file, offenses)

def file_finished(file, offenses)
  return super unless RuboCop::Markdown.markdown_file?(file)
  # Run Preprocess.restore if file has been autocorrected
  if @options[:auto_correct] || @options[:autocorrect]
    RuboCop::Markdown::Preprocess.restore_and_save!(file)
  end
  super
end