class Reek::SmellDetectors::DuplicateMethodCall

Duplication occurs when two fragments of code look nearly identical, or when two fragments of code have nearly identical effects at some conceptual level.

DuplicateMethodCall checks for repeated identical method calls within any one method definition. For example, the following method will report a warning:

def double_thing()
  @other.thing + @other.thing
end

See {file:docs/Duplicate-Method-Call.md} for details.