lib/quality/quality_checker.rb in quality-37.0.0 vs lib/quality/quality_checker.rb in quality-37.0.1
- old
+ new
@@ -1,11 +1,11 @@
# frozen_string_literal: true
require_relative 'command_output_processor'
require_relative 'process'
require_relative 'ruby_spawn'
-require_relative 'threshold'
+require 'high_water_mark/threshold'
module Quality
# Runs a quality-checking, command, checks it agaist the existing
# number of violations for that command, and decreases that number
# if possible, or outputs data if the number of violations increased.
@@ -27,13 +27,13 @@
@count_dir = count_dir
@cmd = cmd
@command_options = command_options
@verbose = verbose
@count_dir.mkdir(output_dir) unless @count_file.exists?(output_dir)
- @threshold = Quality::Threshold.new(cmd,
- count_io: count_io,
- count_file: count_file,
- output_dir: output_dir)
+ @threshold = HighWaterMark::Threshold.new(cmd,
+ count_io: count_io,
+ count_file: count_file,
+ output_dir: output_dir)
@process_class = process_class
end
def execute(&count_violations_on_line)
processor, exit_status = process_command(&count_violations_on_line)