lib/reek/smells/duplication.rb in kevinrutherford-reek-1.1.3.2 vs lib/reek/smells/duplication.rb in kevinrutherford-reek-1.1.3.3

- old
+ new

@@ -31,13 +31,12 @@ def initialize(config = Duplication.default_config) super @max_calls = config[MAX_ALLOWED_CALLS_KEY] end - def examine_context(method, report) + def examine_context(method) smelly_calls(method).each do |call| - report << SmellWarning.new(self, method, - "calls #{SexpFormatter.format(call)} multiple times") + found(method, "calls #{SexpFormatter.format(call)} multiple times") end end def smelly_calls(method) # :nodoc: method.calls.select do |key,val|