lib/quality/runner.rb in quality-23.0.7 vs lib/quality/runner.rb in quality-24.0.0

- old
+ new

@@ -77,21 +77,24 @@ existing_violations = @count_io.read(filename).to_i raise("Problem with file #{filename}") if existing_violations.negative? existing_violations end + def command_name(ancestor, name) + if ancestor.respond_to? :command_name + ancestor.command_name + else + name + end + end + def tools self.class.ancestors.map do |ancestor| ancestor_name = ancestor.to_s next unless ancestor_name.start_with?('Quality::Tools::') name = ancestor.to_s.split('::').last.underscore - command_name = if ancestor.respond_to? :command_name - ancestor.command_name - else - name - end - [name, command_name] + [name, command_name(ancestor, name)] end.compact end def ratchet_quality_cmd(cmd, command_options, @@ -104,9 +107,10 @@ end def_delegators :@config, :ruby_files, :python_files, + :shell_files, :source_files, :source_files_glob, :source_and_doc_files, :source_and_doc_files_glob, :exclude_files,