Duplicates Finder (ReSharper)
The Duplicates finder (ReSharper) build runner, based on ReSharper Command Line Tools, is intended to catch similar code fragments and provide a report on the discovered repetitive blocks of C# and Visual Basic .NET code in Visual Studio 2003, 2005, 2008, 2010, 2012, 2013, and 2015 solutions.
note
This runner requires .NET Framework 4.6.1 (or higher) to be installed on the agent where builds will run.
Sources
Option | Description |
---|---|
Include | Use newline-delimited Ant-like wildcards relative to the checkout root to specify the files to be included into the duplicates search. |
Exclude | Enter newline-delimited Ant-like wildcards to exclude files from the duplicates search (for example, |
JetBrains ReSharper Command Line Tools Settings
Option | Description |
---|---|
R# CLT Home Directory | Select the ReSharper Command Line Tools version. You can check the installed JetBrains ReSharper Command Line Tools versions on the Administration | Tools page. If you want to run ReSharper duplicates using a specific ReSharper version (for example, to ensure it matches the version you have installed in Visual Studio), you can use this page to install another version of the tools and can change the default version to be used. |
Duplicate Searcher Settings
Build Failure Conditions
If a build has too many duplicates, you can configure it to fail by setting a build failure condition.