def lint(fail_on_error: true, inline_mode: false)
      unless yamllint_exists?
        fail("Couldn't find yamllint command. Please install it first.")
      end

      results = parse(`yamllint -f parsable .`)
      return if results.empty?

      if inline_mode
        send_inline_comments(results, fail_on_error)
      else
        send_markdown_comment(results, fail_on_error)
      end
    end
def lint(fail_on_error: true, inline_mode: false)
      unless yamllint_exists?
        fail("Couldn't find yamllint command. Please install it first.")
      end

      results = parse(`yamllint -f parsable .`)
      return if results.empty?

      if inline_mode
        send_inline_comments(results, fail_on_error)
      else
        send_markdown_comment(results, fail_on_error)
      end
    end
Lints Swift files. Will fail if `swiftlint` cannot be installed correctly.
 Generates a `markdown` list of warnings for the prose in a corpus of
 .markdown and .md files.

 @param   [Boolean] fail_on_error
          Generates CI failure on errors.
 @param   [Boolean] inline_mode
          Create inlined messages within the PR.
 @return  [void]