资 源 简 介
What is Agent Ralph?
NOTE: AgentRalph is moving to Github.
Agent Ralph is primarily a code clone detection and repair tool for C#, delivered as a ReSharper plug-in. It also has a few other odds and ends features not related to code clones specifically, but are useful ReSharper extensions in their own right.
Agent Ralph will scan your source code and attempt to identify methods that are functional duplicates of another method. Once a clone is identified Agent Ralph will prompt the user to replace the body of a method with a call to it"s clone.
In some cases two given methods can be functionally equivalent (same inputs produce the same outputs and side effects) but not textually equivalent. For example, two methods might differ only in the naming of local variables, and are otherwise identical. Agent Ralph can detect this