module Bundler::Audit::CLI::Formats::JSON

def criticality_label(advisory)

def criticality_label(advisory)
  case advisory.criticality
  when :none     then "none"
  when :low      then "low"
  when :medium   then "medium"
  when :high     then "high"
  when :critical then "critical"
  else "unknown"
  end
end