lib/quality/tools/reek.rb in quality-20.1.0 vs lib/quality/tools/reek.rb in quality-20.1.1

- old
+ new

@@ -1,22 +1,22 @@ module Quality module Tools # Adds 'reek' tool support to quality gem module Reek + def self.included(base) + base.extend ClassMethods + end + private def quality_reek args = "--single-line #{ruby_files.join(' ')}" ratchet_quality_cmd('reek', args: args, emacs_format: true, gives_error_code_on_violations: true) do |line| self.class.count_reek_violations(line) end - end - - def self.included(base) - base.extend ClassMethods end # See Reek.included module ClassMethods def count_reek_violations(line)