lib/quality/rake/task.rb in quality-22.0.0 vs lib/quality/rake/task.rb in quality-23.0.0

- old
+ new

@@ -1,6 +1,7 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # XXX: There's an underlying issue with bundler, and knowing my luck, # probably RVM that is causing confusion on which version of rake is # being pulled in in this situation. Similar issues from the past: # @@ -43,18 +44,17 @@ # Defines a new task, using the name +name+. def initialize(dsl: ::Rake::Task, cmd_runner: Kernel, count_file: File, count_io: IO, - globber: Dir, gem_spec: Gem::Specification, quality_checker_class: Quality::QualityChecker, - which: Which.new) + which: Which.new, + config: Quality::Config.new) @dsl = dsl @cmd_runner = cmd_runner - @globber = globber - @config = Quality::Config.new(globber: globber) + @config = config yield @config if block_given? @runner = Quality::Runner.new(@config, gem_spec: gem_spec, quality_checker_class: quality_checker_class,