lib/sarif/base_sarif.rb
# Returns a sarif wraning level for a given severity
Returns a sarif wraning level for a given severity
Returns a sarif wraning level for a given severity
def sarif_level(severity)
      case severity
      when "LOW"
        SARIF_WARNINGS[:warning]
      when "MEDIUM"
        SARIF_WARNINGS[:error]
      when "HIGH"
        SARIF_WARNINGS[:error]
      else
        SARIF_WARNINGS[:note]
      end
    end
def sarif_level ( severity ) case severity when "LOW" SARIF_WARNINGS [ :warning ] when "MEDIUM" SARIF_WARNINGS [ :error ] when "HIGH" SARIF_WARNINGS [ :error ] else SARIF_WARNINGS [ :note ] end end
Returns a sarif wraning level for a given severity
Returns a sarif wraning level for a given severity
severity
<not_specific>