Sha256: b7e6b30255d41e3680cfbc986b48df77bd527eb7f70b4cd6611887d5f0ce7474

Contents?: true

Size: 488 Bytes

Versions: 4

Compression:

Stored size: 488 Bytes

Contents

$:.unshift File.dirname(__FILE__)

require 'reek/checker'
require 'reek/class_checker'
require 'reek/method_checker'

module Reek

  class FileChecker < Checker

    def initialize(report)
      super(report)
      @description = ''
    end

    def process_class(exp)  # :nodoc:
      Reek::ClassChecker.new(@smells).process(exp)
      s(exp)
    end

    def process_defn(exp)  # :nodoc:
      Reek::MethodChecker.new(@smells, @description).process(exp)
      s(exp)
    end  
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reek-0.2.1 lib/reek/file_checker.rb
reek-0.2.2 lib/reek/file_checker.rb
reek-0.2.3 lib/reek/file_checker.rb
reek-0.3.0 lib/reek/file_checker.rb