ReSharper Command Line Tools
ReSharper Command Line Tools is a set of free standalone tools that help you integrate automatic code quality analysis into your CI, version control or any other server.
The Command Line Tools package includes the following tools:
dupFinder, which detects duplicated code in the whole solution or narrower scope
CleanupCode, which instantly eliminates code style violations and ensures a uniform code base
You can also watch this 8-minute overview video where Maarten Balliauw shows how you can execute code inspections and find duplicate code in .NET applications using the free ReSharper Command Line Tools as well as JetBrains TeamCity.