From 80f25b2dd6cab0fd1bf8b3ce18009e8bfdbdf561 Mon Sep 17 00:00:00 2001 From: J Miles Date: Thu, 11 Oct 2018 10:09:50 +1300 Subject: [PATCH] Add --no-exit-on-warn flag that exits with 0 even when vulnerable --- lib/bundler/audit/cli.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bundler/audit/cli.rb b/lib/bundler/audit/cli.rb index deb1b2a7..67564117 100644 --- a/lib/bundler/audit/cli.rb +++ b/lib/bundler/audit/cli.rb @@ -34,6 +34,7 @@ class CLI < ::Thor method_option :verbose, :type => :boolean, :aliases => '-v' method_option :ignore, :type => :array, :aliases => '-i' method_option :update, :type => :boolean, :aliases => '-u' + method_option :no_exit_on_warn, :type => :boolean def check update if options[:update] @@ -54,6 +55,7 @@ def check if vulnerable say "Vulnerabilities found!", :red + exit 0 if options.no_exit_on_warn? exit 1 else say("No vulnerabilities found", :green) unless options.quiet?