lib/quality/quality_checker.rb in quality-27.4.0 vs lib/quality/quality_checker.rb in quality-28.0.0

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + require_relative 'command_output_processor' require_relative 'process' require_relative 'ruby_spawn' module Quality @@ -58,11 +59,13 @@ end def check_exit_status(exit_status) return if @command_options[:gives_error_code_on_violations] || @command_options[:gives_error_code_on_no_relevant_code] + return unless exit_status.nonzero? + raise("Error detected running #{full_cmd}. " \ - "Exit status is #{exit_status}") if exit_status.nonzero? + "Exit status is #{exit_status}") end MAX_VIOLATIONS = 9_999_999_999 def existing_violations