Sha256: 24843db5b570618284abeae5cccc4bd89a93ae18de1b917bede976a7cb872ebf
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
$:.unshift File.dirname(__FILE__) require 'reek/checker' require 'reek/method_checker' module Reek class ClassChecker < Checker def initialize(report) super(report) @description = '' end def process_class(exp) # :nodoc: @description = exp[1].to_s superclass = exp[2] LargeClass.check(@description, self) exp[3..-1].each { |defn| process(defn) } unless superclass == [:const, :Struct] s(exp) end def process_defn(exp) # :nodoc: bc = Reek::MethodChecker.new(@smells, @description) bc.process(exp) s(exp) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reek-0.1.0 | lib/reek/class_checker.rb |
reek-0.1.1 | lib/reek/class_checker.rb |
reek-0.2.0 | lib/reek/class_checker.rb |