def send_inline_comment(results, method)
      dir = "#{Dir.pwd}/"
      results.each do |r|
        github_filename = r['file'].gsub(dir, '')
        message = "#{r['reason']}".dup

        # extended content here
        filename = r['file'].split('/').last
        message << "\n"
        message << "`#{r['rule_id']}`" # helps writing exceptions // swiftlint:disable:this rule_id
        message << " `#{filename}:#{r['line']}`" # file:line for pasting into Xcode Quick Open
        
        send(method, message, file: github_filename, line: r['line'])
      end
    end
def send_inline_comment(results, method)
      dir = "#{Dir.pwd}/"
      results.each do |r|
        github_filename = r['file'].gsub(dir, '')
        message = "#{r['reason']}".dup

        # extended content here
        filename = r['file'].split('/').last
        message << "\n"
        message << "`#{r['rule_id']}`" # helps writing exceptions // swiftlint:disable:this rule_id
        message << " `#{filename}:#{r['line']}`" # file:line for pasting into Xcode Quick Open
        
        send(method, message, file: github_filename, line: r['line'])
      end
    end
Send inline comment with danger's warn or fail method

 @return [void]