7 Detecting duplication
One of the modules shipped with the Moose Suite is SmallDude, an engine for detecting code duplication.
To trigger it, first you need a group of entities that can retrieve sourceText
(see Section 4.5). In the case of a source code model, these entities are classes, methods or files. Once you have a target group, you can invoke “Compute duplication” from the “Utilities” contextual menu of the group.
The result of this operation is the generation of several Duplication and Multiplication entities. These are added in the Model and they can be browsed just like other entities.