lib/quality/runner.rb in quality-8.0.0 vs lib/quality/runner.rb in quality-8.1.0

- old
+ new

@@ -18,10 +18,12 @@ include Tools::Reek include Tools::Rubocop include Tools::BigFiles include Tools::Punchlist + extend Forwardable + def initialize(config, gem_spec: Gem::Specification, quality_checker_class: Quality::QualityChecker, count_io: IO, count_file: File, @@ -92,18 +94,9 @@ @config.output_dir, @config.verbose) quality_checker.execute(&count_violations_on_line) end - def ruby_files - @config.ruby_files - end - - def ruby_files_glob - @config.ruby_files_glob - end - - def source_files_glob - @config.source_files_glob - end + def_delegators :@config, :ruby_files, :ruby_files_glob, :source_files_glob, + :punchlist_regexp end end