def audit
      res = ::Bundler::Audit::Scanner.new.scan.to_a.map do |vuln|
        case vuln
        when ::Bundler::Audit::Scanner::InsecureSource
          insecure_source_message vuln
        when ::Bundler::Audit::Scanner::UnpatchedGem
          insecure_gem_message vuln
        else
          insecure_message vuln
        end
      end
      if res.any?
        message = "Vulnerabilities found:\n" + res.join("\n")
        color = :red
        notify message
      else
        message = "No vulnerabilities found."
        color = :green
      end
      UI.info(UI.send(:color, message, color))
    end
def audit
      res = ::Bundler::Audit::Scanner.new.scan.to_a.map do |vuln|
        case vuln
        when ::Bundler::Audit::Scanner::InsecureSource
          insecure_source_message vuln
        when ::Bundler::Audit::Scanner::UnpatchedGem
          insecure_gem_message vuln
        else
          insecure_message vuln
        end
      end
      if res.any?
        message = "Vulnerabilities found:\n" + res.join("\n")
        color = :red
        notify message
      else
        message = "No vulnerabilities found."
        color = :green
      end
      UI.info(UI.send(:color, message, color))
    end
Scans for vulnerabilities and reports them.