lib/reek/smells/smell_detector.rb in reek-1.3.6 vs lib/reek/smells/smell_detector.rb in reek-1.3.7

- old
+ new

@@ -5,11 +5,11 @@ module Reek module Smells module ExcludeInitialize def self.default_config - super.adopt(EXCLUDE_KEY => ['initialize']) + super.merge(EXCLUDE_KEY => ['initialize']) end end # # Shared responsibilities of all smell detectors. @@ -83,11 +83,10 @@ def value(key, ctx, fall_back) config_for(ctx)[key] || @config.value(key, ctx, fall_back) end def config_for(ctx) - ctx.config[self.class.name.split(/::/)[-1]] || {} - # BUG: needs to consider smell class AND subclass + ctx.config_for(self.class) end end end end