def lint(config = nil)
      config = config.is_a?(Hash) ? config : { files: config }
      files = config[:files]
      force_exclusion = config[:force_exclusion] || false

      report_danger = config[:report_danger] || false
      inline_comment = config[:inline_comment] || false
      fail_on_inline_comment = config[:fail_on_inline_comment] || false

      files_to_lint = fetch_files_to_lint(files)
      files_to_report = rubocop(files_to_lint, force_exclusion)

      return if files_to_report.empty?
      return report_failures files_to_report if report_danger

      if inline_comment
        add_violation_for_each_line(files_to_report, fail_on_inline_comment)
      else
        markdown offenses_message(files_to_report)
      end

    end
def lint(config = nil)
      config = config.is_a?(Hash) ? config : { files: config }
      files = config[:files]
      force_exclusion = config[:force_exclusion] || false

      report_danger = config[:report_danger] || false
      inline_comment = config[:inline_comment] || false
      fail_on_inline_comment = config[:fail_on_inline_comment] || false

      files_to_lint = fetch_files_to_lint(files)
      files_to_report = rubocop(files_to_lint, force_exclusion)

      return if files_to_report.empty?
      return report_failures files_to_report if report_danger

      if inline_comment
        add_violation_for_each_line(files_to_report, fail_on_inline_comment)
      else
        markdown offenses_message(files_to_report)
      end

    end
Runs Ruby files through Rubocop. Generates a `markdown` list of warnings.

 @param   [String] files
          A globbed string which should return the files that you want to
          run through, defaults to nil. If nil, modified and added files
          from the diff will be used.
 @return  [void]