lib/reek/smells/smell_detector.rb in reek-4.0.3 vs lib/reek/smells/smell_detector.rb in reek-4.0.4
- old
+ new
@@ -50,11 +50,11 @@
def report_on(collector)
smells_found.each { |smell| smell.report_on(collector) }
end
def exception?(context)
- context.matches?(value(EXCLUDE_KEY, context, DEFAULT_EXCLUDE_SET))
+ context.matches?(value(EXCLUDE_KEY, context))
end
def self.todo_configuration_for(smells)
default_exclusions = default_config.fetch 'exclude'
exclusions = default_exclusions + smells.map(&:context)
@@ -67,11 +67,11 @@
def enabled_for?(context)
config.enabled? && config_for(context)[SmellConfiguration::ENABLED_KEY] != false
end
- def value(key, ctx, fall_back)
- config_for(ctx)[key] || config.value(key, ctx, fall_back)
+ def value(key, ctx)
+ config_for(ctx)[key] || config.value(key, ctx)
end
def config_for(ctx)
ctx.config_for(self.class)
end