Hope you find the article – “Addressing Duplicates in your code” interesting.

Using Flay Gem

There is a Gem in Ruby – Flay which will help us to find duplicates. It analyzes code for structural similarities. The details of this gem are available at http://rubygems.org/gems/flay

The good thing is it will classify duplicates into two categories – identical and similar. Please see a HTML version of the report using the Flay output.

Using Code Climate

It is an automated code review SaaS environment which will generate reports based on the latest code. It requires a GIT repository to monitor the project.

It uses the same Flay gem for identifying the code duplicates.