def send_inline_comment(issues)
      target_files = (git.modified_files - git.deleted_files) + git.added_files
      dir = "#{Dir.pwd}/"
      SEVERITY_LEVELS.reverse.each do |level|
        filtered = issues.select { |issue| issue.get("severity") == level }
        next if filtered.empty?
        filtered.each do |r|
          location = r.parent
          filename = location.get("name").gsub(dir, "")
          next unless !filtering || (target_files.include? filename)
          line = (r.get("line") || "0").to_i
          send(level == "warning" ? "warn" : "fail", r.get("message"), file: filename, line: line)
        end
      end
    end
def send_inline_comment(issues)
      target_files = (git.modified_files - git.deleted_files) + git.added_files
      dir = "#{Dir.pwd}/"
      SEVERITY_LEVELS.reverse.each do |level|
        filtered = issues.select { |issue| issue.get("severity") == level }
        next if filtered.empty?
        filtered.each do |r|
          location = r.parent
          filename = location.get("name").gsub(dir, "")
          next unless !filtering || (target_files.include? filename)
          line = (r.get("line") || "0").to_i
          send(level == "warning" ? "warn" : "fail", r.get("message"), file: filename, line: line)
        end
      end
    end
Send inline comment with danger's warn or fail method

 @return [void]